Fix pick block key giving invalid spawn eggs

This commit is contained in:
iChun 2012-09-18 21:37:48 +08:00
parent de24eea885
commit 8940b13512

View file

@ -119,7 +119,7 @@
+ else
+ {
+ int id = EntityList.getEntityID(this);
+ if (id > 0 || EntityList.entityEggs.containsKey(id))
+ if (!(id <= 0 || !EntityList.entityEggs.containsKey(id)))
+ {
+ return new ItemStack(Item.monsterPlacer, 1, id);
+ }