mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-05 18:27:17 +01:00
Fixed food data not persisting appropriately.
This commit is contained in:
parent
e85c99289c
commit
f8d36cd09c
2 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue