mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-17 10:55:17 +00:00
Minor network bandwidth optimization: use vanilla block events when possible because those hvae smaller packet sizes
This commit is contained in:
1 parent
6339c75e40
commit
d244e12437
9 files changed
+145
-123
No files matched your search
@@ -51,6 +51,6 @@ public abstract class BlockMod extends Block implements IModelRegister {
|
||||
public boolean eventReceived(IBlockState state, World world, BlockPos pos, int id, int param) {
|
||||
super.eventReceived(state, world, pos, id, param);
|
||||
TileEntity tileentity = world.getTileEntity(pos);
|
||||
return tileentity != null ? tileentity.receiveClientEvent(id, param) : false;
|
||||
return tileentity != null && tileentity.receiveClientEvent(id, param);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user