summaryrefslogtreecommitdiffstats
path: root/src/main/java/net
diff options
context:
space:
mode:
authorEvilSeph <evilseph@gmail.com>2011-09-16 04:26:40 -0400
committerEvilSeph <evilseph@gmail.com>2011-09-16 05:19:06 -0400
commitf8d36cd09cdc41eca023b9e208349d72d58f2866 (patch)
treec7c7991be61d8217d6bdcf5d412fc3217e38139c /src/main/java/net
parente85c99289cd0f56cb9aff8e673f3e87664cc4321 (diff)
downloadcraftbukkit-f8d36cd09cdc41eca023b9e208349d72d58f2866.tar
craftbukkit-f8d36cd09cdc41eca023b9e208349d72d58f2866.tar.gz
craftbukkit-f8d36cd09cdc41eca023b9e208349d72d58f2866.tar.lz
craftbukkit-f8d36cd09cdc41eca023b9e208349d72d58f2866.tar.xz
craftbukkit-f8d36cd09cdc41eca023b9e208349d72d58f2866.zip
Fixed food data not persisting appropriately.
Diffstat (limited to 'src/main/java/net')
-rw-r--r--src/main/java/net/minecraft/server/EntityPlayer.java1
-rw-r--r--src/main/java/net/minecraft/server/ServerConfigurationManager.java1
2 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/EntityPlayer.java b/src/main/java/net/minecraft/server/EntityPlayer.java
index 1dbc1c49..b5c90270 100644
--- a/src/main/java/net/minecraft/server/EntityPlayer.java
+++ b/src/main/java/net/minecraft/server/EntityPlayer.java
@@ -99,7 +99,6 @@ public class EntityPlayer extends EntityHuman implements ICrafting {
this.itemInWorldManager = new ItemInWorldManager((WorldServer) world);
this.itemInWorldManager.player = this;
this.itemInWorldManager.a(oldMode);
- this.foodData = new FoodMetaData();
// CraftBukkit end
}
diff --git a/src/main/java/net/minecraft/server/ServerConfigurationManager.java b/src/main/java/net/minecraft/server/ServerConfigurationManager.java
index 39353b1d..32c9fc5b 100644
--- a/src/main/java/net/minecraft/server/ServerConfigurationManager.java
+++ b/src/main/java/net/minecraft/server/ServerConfigurationManager.java
@@ -251,6 +251,7 @@ public class ServerConfigurationManager {
entityplayer.health = 20;
entityplayer.fireTicks = 0;
entityplayer.fallDistance = 0;
+ entityplayer.foodData = new FoodMetaData();
} else {
location.setWorld(this.server.getWorldServer(i).getWorld());
}