Small tile cleanup + small fixes for potential issues.

This commit is contained in:
modmuss50 2017-10-11 13:04:09 +01:00
parent c80cc0101f
commit 610c2e479e
3 changed files with 8 additions and 5 deletions

View file

@ -73,7 +73,8 @@ public class TileIronFurnace extends TileLegacyMachineBase
} }
@Override @Override
public void updateEntity() { public void update() {
super.update();
if(world.isRemote){ if(world.isRemote){
return; return;
} }

View file

@ -35,8 +35,8 @@ import net.minecraftforge.items.CapabilityItemHandler;
import net.minecraftforge.items.wrapper.InvWrapper; import net.minecraftforge.items.wrapper.InvWrapper;
import powercrystals.minefactoryreloaded.api.IDeepStorageUnit; import powercrystals.minefactoryreloaded.api.IDeepStorageUnit;
import reborncore.api.IListInfoProvider; import reborncore.api.IListInfoProvider;
import reborncore.api.tile.IInventoryProvider;
import reborncore.api.IToolDrop; import reborncore.api.IToolDrop;
import reborncore.api.tile.IInventoryProvider;
import reborncore.common.tile.TileLegacyMachineBase; import reborncore.common.tile.TileLegacyMachineBase;
import reborncore.common.util.Inventory; import reborncore.common.util.Inventory;
import reborncore.common.util.ItemUtils; import reborncore.common.util.ItemUtils;
@ -59,7 +59,8 @@ public class TileTechStorageBase extends TileLegacyMachineBase
} }
@Override @Override
public void updateEntity() { public void update() {
super.update();
if (!world.isRemote) { if (!world.isRemote) {
ItemStack outputStack = ItemStack.EMPTY; ItemStack outputStack = ItemStack.EMPTY;
if (!this.getStackInSlot(1).isEmpty()){ if (!this.getStackInSlot(1).isEmpty()){

View file

@ -28,8 +28,8 @@ import net.minecraft.block.state.IBlockState;
import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
import net.minecraft.util.EnumFacing; import net.minecraft.util.EnumFacing;
import reborncore.api.tile.IInventoryProvider;
import reborncore.api.IToolDrop; import reborncore.api.IToolDrop;
import reborncore.api.tile.IInventoryProvider;
import reborncore.common.blocks.BlockMachineBase; import reborncore.common.blocks.BlockMachineBase;
import reborncore.common.powerSystem.TilePowerAcceptor; import reborncore.common.powerSystem.TilePowerAcceptor;
import reborncore.common.util.Inventory; import reborncore.common.util.Inventory;
@ -58,7 +58,8 @@ public class TileRecycler extends TilePowerAcceptor implements IToolDrop, IInven
} }
@Override @Override
public void updateEntity() { public void update() {
super.update();
if (this.world.isRemote) if (this.world.isRemote)
return; return;