From bfd859e144cb0b389fee61a3274d79f2a38f7155 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Thu, 12 May 2016 14:26:10 +0200 Subject: [PATCH] Replace Growth Ring's constant NBT updating with world time checking --- .../actuallyadditions/mod/items/ItemGrowthRing.java | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/items/ItemGrowthRing.java b/src/main/java/de/ellpeck/actuallyadditions/mod/items/ItemGrowthRing.java index cc732218e..7e2ea8476 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/items/ItemGrowthRing.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/items/ItemGrowthRing.java @@ -51,10 +51,8 @@ public class ItemGrowthRing extends ItemEnergy{ if(stack.getTagCompound() == null){ stack.setTagCompound(new NBTTagCompound()); } - int waitTime = stack.getTagCompound().getInteger("WaitTime"); - //Adding all possible Blocks - if(waitTime >= 30){ + if(player.worldObj.getTotalWorldTime()%30 == 0){ int range = 3; for(int x = -range; x < range+1; x++){ for(int z = -range; z < range+1; z++){ @@ -94,11 +92,6 @@ public class ItemGrowthRing extends ItemEnergy{ } } } - - stack.getTagCompound().setInteger("WaitTime", 0); - } - else{ - stack.getTagCompound().setInteger("WaitTime", waitTime+1); } } }