From 47dc1ed335422a97057fb75e34cb3cb9dedeb07e Mon Sep 17 00:00:00 2001 From: GotoLink Date: Mon, 28 Oct 2013 20:42:04 +0100 Subject: [PATCH] Removed unecessary caching --- common/MysticWorld/Util/TickHandler.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/common/MysticWorld/Util/TickHandler.java b/common/MysticWorld/Util/TickHandler.java index a0810b3..48a79b7 100644 --- a/common/MysticWorld/Util/TickHandler.java +++ b/common/MysticWorld/Util/TickHandler.java @@ -47,12 +47,8 @@ public class TickHandler implements IScheduledTickHandler { @Override public void tickStart(EnumSet type, Object... tickData) { - Random rand = new Random(); EntityPlayer player = (EntityPlayer) tickData[0]; - World world = player.worldObj; - InventoryPlayer inventory = player.inventory; - ItemStack itemstack = inventory.getCurrentItem(); - pillarTick(player, world, inventory, rand); + pillarTick(player, player.worldObj, player.inventory, new Random()); } private static void pillarTick(EntityPlayer player, World world, InventoryPlayer inventory, Random rand) {