mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2026-08-24 11:55:13 -06:00
One more magic number
This commit is contained in:
parent
33f1ea94d1
commit
da4f3acf18
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue