SPIGOT-3379: Generalise canPickupItems to other entities.

This commit is contained in:
md_5
2017-06-26 08:34:52 +10:00
parent de76085596
commit d7cd7275f2
4 changed files with 40 additions and 32 deletions

View File

@@ -16,6 +16,15 @@
public abstract class EntityInsentient extends EntityLiving {
private static final DataWatcherObject<Byte> a = DataWatcher.a(EntityInsentient.class, DataWatcherRegistry.a);
@@ -27,7 +36,7 @@
public float[] dropChanceHand;
private final NonNullList<ItemStack> by;
public float[] dropChanceArmor;
- public boolean canPickUpLoot;
+ // public boolean canPickUpLoot; // CraftBukkit - moved up to EntityLiving
public boolean persistent;
private final Map<PathType, Float> bB;
private MinecraftKey bC;
@@ -57,6 +66,9 @@
this.r();
}