mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2026-08-23 11:25:11 -06:00
make greg not yell at me
This commit is contained in:
parent
fb326cf08d
commit
a3323c5778
1 changed files with 2 additions and 2 deletions
|
|
@ -12,14 +12,14 @@ import core.net.packet.context.ClearChunkContext;
|
|||
* @author Emperor
|
||||
*/
|
||||
public final class ClearRegionChunk implements OutgoingPacket<ClearChunkContext> {
|
||||
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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue