Don't blanket implement ITickable on everything, some TE's are now non-tickable (e.g. prisms, platforms), yields minor performance increase

This commit is contained in:
Vincent Lee committed 2018-01-11 22:23:33 -06:00
1 parent 446bd04b3d
commit 124fc8518a
35 files changed
+69 -39

No files matched your search

@@ -15,13 +15,12 @@ import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.network.NetworkManager;
import net.minecraft.network.play.server.SPacketUpdateTileEntity;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.ITickable;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;
import javax.annotation.Nonnull;
public class TileMod extends TileEntity implements ITickable {
public class TileMod extends TileEntity {
@Override
public boolean shouldRefresh(World world, BlockPos pos, @Nonnull IBlockState oldState, @Nonnull IBlockState newState) {
@@ -65,7 +64,4 @@ public class TileMod extends TileEntity implements ITickable {
readPacketNBT(packet.getNbtCompound());
}
@Override
public void update() {}
}