One more magic number

This commit is contained in:
Player Name 2026-07-28 21:06:19 +02:00
parent 33f1ea94d1
commit da4f3acf18

View file

@ -1,6 +1,7 @@
package core.net.packet.out;
import core.game.world.map.Location;
import core.game.world.map.RegionChunk;
import core.game.world.update.MapChunkRenderer;
import core.net.packet.IoBuffer;
import core.net.packet.OutgoingPacket;
@ -11,7 +12,7 @@ import core.net.packet.context.ClearChunkContext;
* @author Emperor
*/
public final class ClearRegionChunk implements OutgoingPacket<ClearChunkContext> {
static final int buildAreaDepthInTiles = (2*MapChunkRenderer.BUILD_AREA_DEPTH +1) * 8;
static final int buildAreaDepthInTiles = MapChunkRenderer.BUILD_AREA_SIZE * RegionChunk.SIZE;
@Override
public void send(ClearChunkContext context) {
@ -24,5 +25,4 @@ public final class ClearRegionChunk implements OutgoingPacket<ClearChunkContext>
context.getPlayer().getSession().write(buffer);
}
}
}