mirror of
https://github.com/GTNewHorizons/StorageDrawers.git
synced 2026-11-20 12:20:05 +00:00
Fix double-click entry when world time is frozen.
This commit is contained in:
1 parent
2b32dce444
commit
4bf1d387d1
1 file changed
+2
-2
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user