From 456cf1356ef45892d8e2229a8459ae793d8cdfdd Mon Sep 17 00:00:00 2001 From: CrazyPants Date: Thu, 11 Sep 2014 19:24:03 +0800 Subject: [PATCH] #997 EnderIO not letting me edit IO in custom ages. --- src/main/java/crazypants/enderio/gui/IoConfigRenderer.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/crazypants/enderio/gui/IoConfigRenderer.java b/src/main/java/crazypants/enderio/gui/IoConfigRenderer.java index 5e557df1..c5627704 100644 --- a/src/main/java/crazypants/enderio/gui/IoConfigRenderer.java +++ b/src/main/java/crazypants/enderio/gui/IoConfigRenderer.java @@ -129,7 +129,7 @@ public class IoConfigRenderer { } public void init() { - initTime = world.getTotalWorldTime(); + initTime = System.currentTimeMillis(); } public SelectedFace getSelection() { @@ -158,7 +158,7 @@ public class IoConfigRenderer { distance -= Mouse.getEventDWheel() * 0.01; distance = VecmathUtil.clamp(distance, 0.01, 200); - long elapsed = world.getTotalWorldTime() - initTime; + long elapsed = System.currentTimeMillis() - initTime; int x = Mouse.getEventX(); int y = Mouse.getEventY(); Vector3d start = new Vector3d(); @@ -169,7 +169,7 @@ public class IoConfigRenderer { updateSelection(start, end); } - if(!Mouse.getEventButtonState() && camera.isValid() && elapsed > 10) { + if(!Mouse.getEventButtonState() && camera.isValid() && elapsed > 500) { if(Mouse.getEventButton() == 1) { if(selection != null) { selection.config.toggleIoModeForFace(selection.face);