diff --git a/Server/src/main/core/net/packet/out/ClearRegionChunk.java b/Server/src/main/core/net/packet/out/ClearRegionChunk.java index 29821c568..8a46171b7 100644 --- a/Server/src/main/core/net/packet/out/ClearRegionChunk.java +++ b/Server/src/main/core/net/packet/out/ClearRegionChunk.java @@ -12,14 +12,14 @@ import core.net.packet.context.ClearChunkContext; * @author Emperor */ public final class ClearRegionChunk implements OutgoingPacket { - static final int buildAreaDepthInTiles = MapChunkRenderer.BUILD_AREA_SIZE * RegionChunk.SIZE; + static final int BUILD_AREA_DEPTH_IN_TILES = MapChunkRenderer.BUILD_AREA_SIZE * RegionChunk.SIZE; @Override public void send(ClearChunkContext context) { Location l = context.getPlayer().getPlayerFlags().getLastSceneGraph(); int x = context.getChunk().getCurrentBase().getSceneX(l); int y = context.getChunk().getCurrentBase().getSceneY(l); - if (x >= 0 && y >= 0 && x < buildAreaDepthInTiles && y < buildAreaDepthInTiles) { + if (x >= 0 && y >= 0 && x < BUILD_AREA_DEPTH_IN_TILES && y < BUILD_AREA_DEPTH_IN_TILES) { IoBuffer buffer = new IoBuffer(112).put(x).putC(y); buffer.cypherOpcode(context.getPlayer().getSession().getIsaacPair().getOutput()); context.getPlayer().getSession().write(buffer);