File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/main/java/gregtech/api/metatileentity Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 2626
2727public abstract class SyncedTileEntityBase extends BlockStateTileEntity implements ISyncedTileEntity {
2828
29+ public static final int SIZE_THRESHOLD = 10 ;
2930 private final PacketDataList updates = new PacketDataList ();
3031
3132 public @ Nullable TileEntity getNeighbor (EnumFacing facing ) {
@@ -65,7 +66,7 @@ private void notifyWorld() {
6566
6667 private boolean canNotifyWorld () {
6768 // short circuit with packet size to avoid too many hash lookups and instanceof casts
68- if (updates .size () > 10 && getWorld () instanceof WorldServer server ) {
69+ if (updates .size () > SIZE_THRESHOLD && getWorld () instanceof WorldServer server ) {
6970 int x = getPos ().getX () >> 4 ;
7071 int z = getPos ().getZ () >> 4 ;
7172 if (server .getPlayerChunkMap ().contains (x , z )) {
You can’t perform that action at this time.
0 commit comments