Removed unecessary caching
This commit is contained in:
parent
578051b530
commit
47dc1ed335
1 changed files with 1 additions and 5 deletions
|
|
@ -47,12 +47,8 @@ public class TickHandler implements IScheduledTickHandler {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void tickStart(EnumSet<TickType> type, Object... tickData) {
|
public void tickStart(EnumSet<TickType> type, Object... tickData) {
|
||||||
Random rand = new Random();
|
|
||||||
EntityPlayer player = (EntityPlayer) tickData[0];
|
EntityPlayer player = (EntityPlayer) tickData[0];
|
||||||
World world = player.worldObj;
|
pillarTick(player, player.worldObj, player.inventory, new Random());
|
||||||
InventoryPlayer inventory = player.inventory;
|
|
||||||
ItemStack itemstack = inventory.getCurrentItem();
|
|
||||||
pillarTick(player, world, inventory, rand);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void pillarTick(EntityPlayer player, World world, InventoryPlayer inventory, Random rand) {
|
private static void pillarTick(EntityPlayer player, World world, InventoryPlayer inventory, Random rand) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue