Fixed eating golden apple with full hunger, fixed wrong implementation of enchanted golden apple, close #276

This commit is contained in:
Dylan K. Taylor
2017-01-21 18:25:12 +00:00
parent 50b9034e16
commit b22232730e
3 changed files with 50 additions and 7 deletions

View File

@ -215,6 +215,7 @@ class Item implements ItemIds, \JsonSerializable{
self::$list[self::PRISMARINE_CRYSTALS] = PrismarineCrystals::class;
self::$list[self::PRISMARINE_SHARD] = PrismarineShard::class;
self::$list[self::NETHER_STAR] = NetherStar::class;
self::$list[self::ENCHANTED_GOLDEN_APPLE] = GoldenAppleEnchanted::class;
for($i = 0; $i < 256; ++$i){
if(Block::$list[$i] !== null){