Fix portal in Zenumist society not working for GM chr

This commit is contained in:
P0nk
2023-02-17 00:42:33 +01:00
parent 82157c7bd1
commit b30e03ffb3

View File

@@ -78,7 +78,7 @@ public final class ChangeMapHandler extends AbstractPacketHandler {
p.readByte();
boolean wheel = p.readByte() > 0;
boolean chasing = p.readByte() == 1 && chr.isGM();
boolean chasing = p.readByte() == 1 && chr.isGM() && p.available() == 2 * Integer.BYTES;
if (chasing) {
chr.setChasing(true);
chr.setPosition(new Point(p.readInt(), p.readInt()));