Merge pull request #175 from iChun/patch-2

Fix pick block key giving invalid spawn eggs
This commit is contained in:
LexManos 2012-09-18 19:47:15 -07:00
commit 8c76914ef2

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);
+ }