From 4bf1d387d1930520b204aeef899af168702ca7d1 Mon Sep 17 00:00:00 2001 From: Justin Aquadro Date: Sun, 9 Nov 2014 23:15:19 -0500 Subject: [PATCH] Fix double-click entry when world time is frozen. --- .../storagedrawers/block/tile/TileEntityDrawers.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/jaquadro/minecraft/storagedrawers/block/tile/TileEntityDrawers.java b/src/com/jaquadro/minecraft/storagedrawers/block/tile/TileEntityDrawers.java index 9868fd6..6b58dce 100644 --- a/src/com/jaquadro/minecraft/storagedrawers/block/tile/TileEntityDrawers.java +++ b/src/com/jaquadro/minecraft/storagedrawers/block/tile/TileEntityDrawers.java @@ -147,7 +147,7 @@ public abstract class TileEntityDrawers extends TileEntity implements IDrawerGro if (currentStack != null) count += putItemsIntoSlot(slot, currentStack, currentStack.stackSize); - if (worldObj.getWorldTime() - lastClickTime < 10 && player.getPersistentID().equals(lastClickUUID)) { + if (worldObj.getTotalWorldTime() - lastClickTime < 10 && player.getPersistentID().equals(lastClickUUID)) { for (int i = 0, n = player.inventory.getSizeInventory(); i < n; i++) { ItemStack subStack = player.inventory.getStackInSlot(i); if (subStack != null) { @@ -160,7 +160,7 @@ public abstract class TileEntityDrawers extends TileEntity implements IDrawerGro } } - lastClickTime = worldObj.getWorldTime(); + lastClickTime = worldObj.getTotalWorldTime(); lastClickUUID = player.getPersistentID(); markDirty();