mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-01-22 06:56:56 +00:00
Only send the packet to people within 64 blocks
This is equivalent to what vanilla Minecraft does
This commit is contained in:
parent
afec3743f3
commit
1ef7c8e8db
@ -159,7 +159,8 @@ public abstract class ComputerCraftProxyCommon implements IComputerCraftProxy
|
|||||||
packet.m_dataInt = new int[] { pos.getX(), pos.getY(), pos.getZ() };
|
packet.m_dataInt = new int[] { pos.getX(), pos.getY(), pos.getZ() };
|
||||||
}
|
}
|
||||||
|
|
||||||
ComputerCraft.sendToAllPlayers( packet );
|
NetworkRegistry.TargetPoint point = new NetworkRegistry.TargetPoint( world.provider.getDimension(), pos.getX(), pos.getY(), pos.getZ(), 64 );
|
||||||
|
ComputerCraft.sendToAllAround( packet, point );
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user