summaryrefslogtreecommitdiffstats
path: root/nms-patches/FoodMetaData.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nms-patches/FoodMetaData.patch')
-rw-r--r--nms-patches/FoodMetaData.patch21
1 files changed, 14 insertions, 7 deletions
diff --git a/nms-patches/FoodMetaData.patch b/nms-patches/FoodMetaData.patch
index 4d928ac2..40d6cddd 100644
--- a/nms-patches/FoodMetaData.patch
+++ b/nms-patches/FoodMetaData.patch
@@ -1,9 +1,16 @@
---- ../work/decompile-8eb82bde//net/minecraft/server/FoodMetaData.java 2014-11-28 17:43:43.193707433 +0000
-+++ src/main/java/net/minecraft/server/FoodMetaData.java 2014-11-28 17:38:19.000000000 +0000
-@@ -6,9 +6,17 @@
- public float saturationLevel = 5.0F;
- public float exhaustionLevel;
- public int foodTickTimer;
+--- /home/matt/mc-dev-private//net/minecraft/server/FoodMetaData.java 2015-02-26 22:40:22.751608138 +0000
++++ src/main/java/net/minecraft/server/FoodMetaData.java 2015-02-26 22:40:22.751608138 +0000
+@@ -2,13 +2,21 @@
+
+ public class FoodMetaData {
+
+- private int foodLevel = 20;
+- private float saturationLevel = 5.0F;
+- private float exhaustionLevel;
++ public int foodLevel = 20; // CraftBukkit - public
++ public float saturationLevel = 5.0F; // CraftBukkit - public
++ public float exhaustionLevel; // CraftBukkit - public
+ private int foodTickTimer;
+ private EntityHuman entityhuman; // CraftBukkit
private int e = 20;
@@ -55,7 +62,7 @@
}
}
- if (entityhuman.world.getGameRules().getBoolean("naturalRegeneration") && this.foodLevel >= 18 && entityhuman.cl()) {
+ if (entityhuman.world.getGameRules().getBoolean("naturalRegeneration") && this.foodLevel >= 18 && entityhuman.cm()) {
++this.foodTickTimer;
if (this.foodTickTimer >= 80) {
- entityhuman.heal(1.0F);