Map region not showing on login?
I've sent packet 73 (loading and maps?) but the maps won't show. Player updating has been established on my Netty server but I'm not sure what I'm doing wrong.. The setTeleporting has been set to true in the Player constructor so that the if (player.isTeleporting()) part in the player update would be executed. Would all I need for the map region to show on login is packet 73 or is there more to it? Well, here's my map region packet.
mapRegion:
Code:
public PacketSender mapRegion() {
this.player.setLastLocation(this.player.getLocation());
this.player.write(new PacketBuilder(73).putShortA(this.player.getLocation()
.getRegionX() + 6).putShort(this.player.getLocation()
.getRegionY() + 6).toPacket());
return this;
}
putShortA:
Code:
public PacketBuilder putShortA(int s) {
this.payload.writeByte((byte) (s >> 8));
this.payload.writeByte((byte) (s + 128));
return this;
}
putShort:
Code:
public PacketBuilder putShort(int s) {
this.payload.writeShort((short) s);
return this;
}
Payload is an instance of ChannelBuffer. Any ideas on what could be wrong?