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

This commit is contained in:
Andreas Troelsen 2017-02-10 15:45:12 +01:00
parent 2de5fbf296
commit b7472dbc94

View File

@ -120,6 +120,7 @@ public class MACreature
public LivingEntity spawn(Arena arena, World world, Location loc) { public LivingEntity spawn(Arena arena, World world, Location loc) {
LivingEntity e = (LivingEntity) world.spawnEntity(loc, type); LivingEntity e = (LivingEntity) world.spawnEntity(loc, type);
e.getEquipment().clear(); e.getEquipment().clear();
e.setCanPickupItems(false);
switch (this.name) { switch (this.name) {
case "sheep": case "sheep":