mirror of
https://github.com/garbagemule/MobArena.git
synced 2024-11-30 06:33:55 +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) {
|
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":
|
||||||
|
Loading…
Reference in New Issue
Block a user