mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-20 12:19:46 +00:00
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:
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() {}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user