Prevent mobs from picking up dropped items and blocks. Fixes #344

This commit is contained in:
Andreas Troelsen committed 2017-02-10 15:45:12 +01:00
1 parent 2de5fbf296
commit b7472dbc94
1 file changed
+1
@@ -120,6 +120,7 @@ public class MACreature
public LivingEntity spawn(Arena arena, World world, Location loc) {
LivingEntity e = (LivingEntity) world.spawnEntity(loc, type);
e.getEquipment().clear();
e.setCanPickupItems(false);
switch (this.name) {
case "sheep":