From e3555780d784312aedf77c1c79d2089a11991cd4 Mon Sep 17 00:00:00 2001 From: Falkreon Date: Sun, 16 Apr 2017 02:27:44 -0500 Subject: [PATCH] Slightly better machine status updates --- .../thermionics/tileentity/TileEntityHammerMill.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/elytradev/thermionics/tileentity/TileEntityHammerMill.java b/src/main/java/com/elytradev/thermionics/tileentity/TileEntityHammerMill.java index f57a02a..5c398b3 100644 --- a/src/main/java/com/elytradev/thermionics/tileentity/TileEntityHammerMill.java +++ b/src/main/java/com/elytradev/thermionics/tileentity/TileEntityHammerMill.java @@ -104,12 +104,13 @@ public void update() { if (curRecipe!=lastRecipe) { revolutionsProcessed = 0; lastRecipe = curRecipe; + this.markDirty(); } float newRequirement = 0; if (lastRecipe!=null) { - revolutionsNeeded = curRecipe.getRequiredRevolutions(); + revolutionsNeeded = lastRecipe.getRequiredRevolutions(); //rotaryPower.setRequiredTorque(curRecipe.getRequiredTorque()); - newRequirement = curRecipe.getRequiredTorque(); + newRequirement = lastRecipe.getRequiredTorque(); } if (existingRequirementrevolutionsNeeded) { if (itemStorage.getStackInSlot(StandardMachineSlots.WORK).isEmpty()) { @@ -160,6 +162,7 @@ public void update() { } } + this.markDirty(); } }