mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-18 03:15:07 +00:00
Stop spamming packets when done digesting
This commit is contained in:
1 parent
7907d1d582
commit
a615538289
1 file changed
+2
-2
+2
-2
@@ -43,7 +43,7 @@ public class SubTileGourmaryllis extends SubTileGenerating {
|
||||
if (supertile.getWorld().isRemote)
|
||||
return;
|
||||
|
||||
if(cooldown > 0)
|
||||
if(cooldown > -1)
|
||||
cooldown--;
|
||||
if(cooldown == 0) {
|
||||
mana = Math.min(getMaxMana(), mana + storedMana);
|
||||
@@ -58,7 +58,7 @@ public class SubTileGourmaryllis extends SubTileGenerating {
|
||||
for(EntityItem item : items) {
|
||||
ItemStack stack = item.getEntityItem();
|
||||
if(stack != null && stack.getItem() instanceof ItemFood && !item.isDead && ((Integer) ObfuscationReflectionHelper.getPrivateValue(EntityItem.class, item, LibObfuscation.AGE)) >= slowdown) {
|
||||
if(cooldown == 0) {
|
||||
if(cooldown <= 0) {
|
||||
int val = ((ItemFood) stack.getItem()).getHealAmount(stack);
|
||||
storedMana = val * val * 64;
|
||||
cooldown = val * 10;
|
||||
|
||||
Reference in new issue
Block a user