Fixed food data not persisting appropriately.

Dieser Commit ist enthalten in:
EvilSeph 2011-09-16 04:26:40 -04:00
Ursprung e85c99289c
Commit f8d36cd09c
2 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen

Datei anzeigen

@ -99,7 +99,6 @@ public class EntityPlayer extends EntityHuman implements ICrafting {
this.itemInWorldManager = new ItemInWorldManager((WorldServer) world); this.itemInWorldManager = new ItemInWorldManager((WorldServer) world);
this.itemInWorldManager.player = this; this.itemInWorldManager.player = this;
this.itemInWorldManager.a(oldMode); this.itemInWorldManager.a(oldMode);
this.foodData = new FoodMetaData();
// CraftBukkit end // CraftBukkit end
} }

Datei anzeigen

@ -251,6 +251,7 @@ public class ServerConfigurationManager {
entityplayer.health = 20; entityplayer.health = 20;
entityplayer.fireTicks = 0; entityplayer.fireTicks = 0;
entityplayer.fallDistance = 0; entityplayer.fallDistance = 0;
entityplayer.foodData = new FoodMetaData();
} else { } else {
location.setWorld(this.server.getWorldServer(i).getWorld()); location.setWorld(this.server.getWorldServer(i).getWorld());
} }