if(!MainProxy.isServer()) {
System.err.println("sendPacketToAllWatchingChunk called clientside !");
new Exception().printStackTrace();
return;
}
ChunkCoordIntPair chunk = new ChunkCoordIntPair(X >> 4, Z >> 4);
PlayerCollectionList players = LogisticsEventListener.watcherList.get(chunk);
if(players != null) {
for(EntityPlayer player:players.players()) {
if(MainProxy.getDimensionForWorld(player.worldObj) == dimensionId) {
sendPacketToPlayer(packet, player);