mirror of
https://github.com/garbagemule/MobArena.git
synced 2024-11-23 11:06:14 +01:00
Prevent mobs from picking up dropped items and blocks. Fixes #344
This commit is contained in:
parent
2de5fbf296
commit
b7472dbc94
@ -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":
|
||||
|
Loading…
Reference in New Issue
Block a user