aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/core/entity
diff options
context:
space:
mode:
author‭huajijam <strhuaji@gmail.com>2019-04-30 22:52:55 +0800
committer‭huajijam <strhuaji@gmail.com>2019-04-30 22:52:55 +0800
commite18a5f0e793ac8cf256d17b44910ecc0b7fdb094 (patch)
tree2cb080a99d07318a7f86c4afe2bfbb551de2766c /src/Java/gtPlusPlus/core/entity
parent913bb1c0a34045b1aa11901f49107322b1c03b57 (diff)
parent47d2b68b66fb9958b57c3ff81f1e73e8f6afd91b (diff)
downloadGT5-Unofficial-e18a5f0e793ac8cf256d17b44910ecc0b7fdb094.tar.gz
GT5-Unofficial-e18a5f0e793ac8cf256d17b44910ecc0b7fdb094.tar.bz2
GT5-Unofficial-e18a5f0e793ac8cf256d17b44910ecc0b7fdb094.zip
Automatic synchronization
Diffstat (limited to 'src/Java/gtPlusPlus/core/entity')
-rw-r--r--src/Java/gtPlusPlus/core/entity/item/ItemEntityGiantEgg.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Java/gtPlusPlus/core/entity/item/ItemEntityGiantEgg.java b/src/Java/gtPlusPlus/core/entity/item/ItemEntityGiantEgg.java
index e6129317c6..8e0b1b48ce 100644
--- a/src/Java/gtPlusPlus/core/entity/item/ItemEntityGiantEgg.java
+++ b/src/Java/gtPlusPlus/core/entity/item/ItemEntityGiantEgg.java
@@ -86,6 +86,7 @@ public class ItemEntityGiantEgg extends EntityItem {
ItemStack g = this.getEntityItem();
NBTUtils.setInteger(g, "mTicksExisted", this.age);
NBTUtils.setInteger(g, "lifespan", this.lifespan);
+ NBTUtils.setBoolean(g, "playerHeld", false);
this.setEntityItemStack(g);
Logger.INFO("Writing age to NBT of stored stack item.");
}
@@ -93,6 +94,7 @@ public class ItemEntityGiantEgg extends EntityItem {
ItemStack g = ItemUtils.getSimpleStack(ModItems.itemBigEgg);
NBTUtils.setInteger(g, "mTicksExisted", this.age);
NBTUtils.setInteger(g, "lifespan", this.lifespan);
+ NBTUtils.setBoolean(g, "playerHeld", false);
this.setEntityItemStack(g);
Logger.INFO("Writing age to NBT of new stack item.");