Fixed probable bait location NPE.
This commit is contained in:
@ -218,9 +218,18 @@ public class CharInfo implements IClientOutgoingPacket
|
|||||||
packet.writeC(_player.isFishing() ? 1 : 0); // Confirmed
|
packet.writeC(_player.isFishing() ? 1 : 0); // Confirmed
|
||||||
|
|
||||||
final ILocational baitLocation = _player.getFishing().getBaitLocation();
|
final ILocational baitLocation = _player.getFishing().getBaitLocation();
|
||||||
packet.writeD(baitLocation.getX()); // Confirmed
|
if (baitLocation != null)
|
||||||
packet.writeD(baitLocation.getY()); // Confirmed
|
{
|
||||||
packet.writeD(baitLocation.getZ()); // Confirmed
|
packet.writeD(baitLocation.getX()); // Confirmed
|
||||||
|
packet.writeD(baitLocation.getY()); // Confirmed
|
||||||
|
packet.writeD(baitLocation.getZ()); // Confirmed
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
packet.writeD(0);
|
||||||
|
packet.writeD(0);
|
||||||
|
packet.writeD(0);
|
||||||
|
}
|
||||||
|
|
||||||
packet.writeD(_player.getAppearance().getNameColor()); // Confirmed
|
packet.writeD(_player.getAppearance().getNameColor()); // Confirmed
|
||||||
|
|
||||||
|
@ -217,9 +217,18 @@ public class CharInfo implements IClientOutgoingPacket
|
|||||||
packet.writeC(_player.isFishing() ? 1 : 0); // Confirmed
|
packet.writeC(_player.isFishing() ? 1 : 0); // Confirmed
|
||||||
|
|
||||||
final ILocational baitLocation = _player.getFishing().getBaitLocation();
|
final ILocational baitLocation = _player.getFishing().getBaitLocation();
|
||||||
packet.writeD(baitLocation.getX()); // Confirmed
|
if (baitLocation != null)
|
||||||
packet.writeD(baitLocation.getY()); // Confirmed
|
{
|
||||||
packet.writeD(baitLocation.getZ()); // Confirmed
|
packet.writeD(baitLocation.getX()); // Confirmed
|
||||||
|
packet.writeD(baitLocation.getY()); // Confirmed
|
||||||
|
packet.writeD(baitLocation.getZ()); // Confirmed
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
packet.writeD(0);
|
||||||
|
packet.writeD(0);
|
||||||
|
packet.writeD(0);
|
||||||
|
}
|
||||||
|
|
||||||
packet.writeD(_player.getAppearance().getNameColor()); // Confirmed
|
packet.writeD(_player.getAppearance().getNameColor()); // Confirmed
|
||||||
|
|
||||||
|
@ -217,9 +217,18 @@ public class CharInfo implements IClientOutgoingPacket
|
|||||||
packet.writeC(_player.isFishing() ? 1 : 0); // Confirmed
|
packet.writeC(_player.isFishing() ? 1 : 0); // Confirmed
|
||||||
|
|
||||||
final ILocational baitLocation = _player.getFishing().getBaitLocation();
|
final ILocational baitLocation = _player.getFishing().getBaitLocation();
|
||||||
packet.writeD(baitLocation.getX()); // Confirmed
|
if (baitLocation != null)
|
||||||
packet.writeD(baitLocation.getY()); // Confirmed
|
{
|
||||||
packet.writeD(baitLocation.getZ()); // Confirmed
|
packet.writeD(baitLocation.getX()); // Confirmed
|
||||||
|
packet.writeD(baitLocation.getY()); // Confirmed
|
||||||
|
packet.writeD(baitLocation.getZ()); // Confirmed
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
packet.writeD(0);
|
||||||
|
packet.writeD(0);
|
||||||
|
packet.writeD(0);
|
||||||
|
}
|
||||||
|
|
||||||
packet.writeD(_player.getAppearance().getNameColor()); // Confirmed
|
packet.writeD(_player.getAppearance().getNameColor()); // Confirmed
|
||||||
|
|
||||||
|
@ -218,9 +218,18 @@ public class CharInfo implements IClientOutgoingPacket
|
|||||||
packet.writeC(_player.isFishing() ? 1 : 0); // Confirmed
|
packet.writeC(_player.isFishing() ? 1 : 0); // Confirmed
|
||||||
|
|
||||||
final ILocational baitLocation = _player.getFishing().getBaitLocation();
|
final ILocational baitLocation = _player.getFishing().getBaitLocation();
|
||||||
packet.writeD(baitLocation.getX()); // Confirmed
|
if (baitLocation != null)
|
||||||
packet.writeD(baitLocation.getY()); // Confirmed
|
{
|
||||||
packet.writeD(baitLocation.getZ()); // Confirmed
|
packet.writeD(baitLocation.getX()); // Confirmed
|
||||||
|
packet.writeD(baitLocation.getY()); // Confirmed
|
||||||
|
packet.writeD(baitLocation.getZ()); // Confirmed
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
packet.writeD(0);
|
||||||
|
packet.writeD(0);
|
||||||
|
packet.writeD(0);
|
||||||
|
}
|
||||||
|
|
||||||
packet.writeD(_player.getAppearance().getNameColor()); // Confirmed
|
packet.writeD(_player.getAppearance().getNameColor()); // Confirmed
|
||||||
|
|
||||||
|
@ -218,9 +218,18 @@ public class CharInfo implements IClientOutgoingPacket
|
|||||||
packet.writeC(_player.isFishing() ? 1 : 0); // Confirmed
|
packet.writeC(_player.isFishing() ? 1 : 0); // Confirmed
|
||||||
|
|
||||||
final ILocational baitLocation = _player.getFishing().getBaitLocation();
|
final ILocational baitLocation = _player.getFishing().getBaitLocation();
|
||||||
packet.writeD(baitLocation.getX()); // Confirmed
|
if (baitLocation != null)
|
||||||
packet.writeD(baitLocation.getY()); // Confirmed
|
{
|
||||||
packet.writeD(baitLocation.getZ()); // Confirmed
|
packet.writeD(baitLocation.getX()); // Confirmed
|
||||||
|
packet.writeD(baitLocation.getY()); // Confirmed
|
||||||
|
packet.writeD(baitLocation.getZ()); // Confirmed
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
packet.writeD(0);
|
||||||
|
packet.writeD(0);
|
||||||
|
packet.writeD(0);
|
||||||
|
}
|
||||||
|
|
||||||
packet.writeD(_player.getAppearance().getNameColor()); // Confirmed
|
packet.writeD(_player.getAppearance().getNameColor()); // Confirmed
|
||||||
|
|
||||||
|
@ -218,9 +218,18 @@ public class CharInfo implements IClientOutgoingPacket
|
|||||||
packet.writeC(_player.isFishing() ? 1 : 0); // Confirmed
|
packet.writeC(_player.isFishing() ? 1 : 0); // Confirmed
|
||||||
|
|
||||||
final ILocational baitLocation = _player.getFishing().getBaitLocation();
|
final ILocational baitLocation = _player.getFishing().getBaitLocation();
|
||||||
packet.writeD(baitLocation.getX()); // Confirmed
|
if (baitLocation != null)
|
||||||
packet.writeD(baitLocation.getY()); // Confirmed
|
{
|
||||||
packet.writeD(baitLocation.getZ()); // Confirmed
|
packet.writeD(baitLocation.getX()); // Confirmed
|
||||||
|
packet.writeD(baitLocation.getY()); // Confirmed
|
||||||
|
packet.writeD(baitLocation.getZ()); // Confirmed
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
packet.writeD(0);
|
||||||
|
packet.writeD(0);
|
||||||
|
packet.writeD(0);
|
||||||
|
}
|
||||||
|
|
||||||
packet.writeD(_player.getAppearance().getNameColor()); // Confirmed
|
packet.writeD(_player.getAppearance().getNameColor()); // Confirmed
|
||||||
|
|
||||||
|
@ -218,9 +218,18 @@ public class CharInfo implements IClientOutgoingPacket
|
|||||||
packet.writeC(_player.isFishing() ? 1 : 0); // Confirmed
|
packet.writeC(_player.isFishing() ? 1 : 0); // Confirmed
|
||||||
|
|
||||||
final ILocational baitLocation = _player.getFishing().getBaitLocation();
|
final ILocational baitLocation = _player.getFishing().getBaitLocation();
|
||||||
packet.writeD(baitLocation.getX()); // Confirmed
|
if (baitLocation != null)
|
||||||
packet.writeD(baitLocation.getY()); // Confirmed
|
{
|
||||||
packet.writeD(baitLocation.getZ()); // Confirmed
|
packet.writeD(baitLocation.getX()); // Confirmed
|
||||||
|
packet.writeD(baitLocation.getY()); // Confirmed
|
||||||
|
packet.writeD(baitLocation.getZ()); // Confirmed
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
packet.writeD(0);
|
||||||
|
packet.writeD(0);
|
||||||
|
packet.writeD(0);
|
||||||
|
}
|
||||||
|
|
||||||
packet.writeD(_player.getAppearance().getNameColor()); // Confirmed
|
packet.writeD(_player.getAppearance().getNameColor()); // Confirmed
|
||||||
|
|
||||||
|
@ -219,9 +219,18 @@ public class CharInfo implements IClientOutgoingPacket
|
|||||||
packet.writeC(_player.isFishing() ? 1 : 0); // Confirmed
|
packet.writeC(_player.isFishing() ? 1 : 0); // Confirmed
|
||||||
|
|
||||||
final ILocational baitLocation = _player.getFishing().getBaitLocation();
|
final ILocational baitLocation = _player.getFishing().getBaitLocation();
|
||||||
packet.writeD(baitLocation.getX()); // Confirmed
|
if (baitLocation != null)
|
||||||
packet.writeD(baitLocation.getY()); // Confirmed
|
{
|
||||||
packet.writeD(baitLocation.getZ()); // Confirmed
|
packet.writeD(baitLocation.getX()); // Confirmed
|
||||||
|
packet.writeD(baitLocation.getY()); // Confirmed
|
||||||
|
packet.writeD(baitLocation.getZ()); // Confirmed
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
packet.writeD(0);
|
||||||
|
packet.writeD(0);
|
||||||
|
packet.writeD(0);
|
||||||
|
}
|
||||||
|
|
||||||
packet.writeD(_player.getAppearance().getNameColor()); // Confirmed
|
packet.writeD(_player.getAppearance().getNameColor()); // Confirmed
|
||||||
|
|
||||||
|
@ -220,9 +220,18 @@ public class CharInfo implements IClientOutgoingPacket
|
|||||||
packet.writeC(_player.isFishing() ? 1 : 0); // Confirmed
|
packet.writeC(_player.isFishing() ? 1 : 0); // Confirmed
|
||||||
|
|
||||||
final ILocational baitLocation = _player.getFishing().getBaitLocation();
|
final ILocational baitLocation = _player.getFishing().getBaitLocation();
|
||||||
packet.writeD(baitLocation.getX()); // Confirmed
|
if (baitLocation != null)
|
||||||
packet.writeD(baitLocation.getY()); // Confirmed
|
{
|
||||||
packet.writeD(baitLocation.getZ()); // Confirmed
|
packet.writeD(baitLocation.getX()); // Confirmed
|
||||||
|
packet.writeD(baitLocation.getY()); // Confirmed
|
||||||
|
packet.writeD(baitLocation.getZ()); // Confirmed
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
packet.writeD(0);
|
||||||
|
packet.writeD(0);
|
||||||
|
packet.writeD(0);
|
||||||
|
}
|
||||||
|
|
||||||
packet.writeD(_player.getAppearance().getNameColor()); // Confirmed
|
packet.writeD(_player.getAppearance().getNameColor()); // Confirmed
|
||||||
|
|
||||||
|
@ -217,9 +217,18 @@ public class CharInfo implements IClientOutgoingPacket
|
|||||||
packet.writeC(_player.isFishing() ? 1 : 0); // Confirmed
|
packet.writeC(_player.isFishing() ? 1 : 0); // Confirmed
|
||||||
|
|
||||||
final ILocational baitLocation = _player.getFishing().getBaitLocation();
|
final ILocational baitLocation = _player.getFishing().getBaitLocation();
|
||||||
packet.writeD(baitLocation.getX()); // Confirmed
|
if (baitLocation != null)
|
||||||
packet.writeD(baitLocation.getY()); // Confirmed
|
{
|
||||||
packet.writeD(baitLocation.getZ()); // Confirmed
|
packet.writeD(baitLocation.getX()); // Confirmed
|
||||||
|
packet.writeD(baitLocation.getY()); // Confirmed
|
||||||
|
packet.writeD(baitLocation.getZ()); // Confirmed
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
packet.writeD(0);
|
||||||
|
packet.writeD(0);
|
||||||
|
packet.writeD(0);
|
||||||
|
}
|
||||||
|
|
||||||
packet.writeD(_player.getAppearance().getNameColor()); // Confirmed
|
packet.writeD(_player.getAppearance().getNameColor()); // Confirmed
|
||||||
|
|
||||||
|
@ -218,9 +218,18 @@ public class CharInfo implements IClientOutgoingPacket
|
|||||||
packet.writeC(_player.isFishing() ? 1 : 0); // Confirmed
|
packet.writeC(_player.isFishing() ? 1 : 0); // Confirmed
|
||||||
|
|
||||||
final ILocational baitLocation = _player.getFishing().getBaitLocation();
|
final ILocational baitLocation = _player.getFishing().getBaitLocation();
|
||||||
packet.writeD(baitLocation.getX()); // Confirmed
|
if (baitLocation != null)
|
||||||
packet.writeD(baitLocation.getY()); // Confirmed
|
{
|
||||||
packet.writeD(baitLocation.getZ()); // Confirmed
|
packet.writeD(baitLocation.getX()); // Confirmed
|
||||||
|
packet.writeD(baitLocation.getY()); // Confirmed
|
||||||
|
packet.writeD(baitLocation.getZ()); // Confirmed
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
packet.writeD(0);
|
||||||
|
packet.writeD(0);
|
||||||
|
packet.writeD(0);
|
||||||
|
}
|
||||||
|
|
||||||
packet.writeD(_player.getAppearance().getNameColor()); // Confirmed
|
packet.writeD(_player.getAppearance().getNameColor()); // Confirmed
|
||||||
|
|
||||||
|
@ -218,9 +218,18 @@ public class CharInfo implements IClientOutgoingPacket
|
|||||||
packet.writeC(_player.isFishing() ? 1 : 0); // Confirmed
|
packet.writeC(_player.isFishing() ? 1 : 0); // Confirmed
|
||||||
|
|
||||||
final ILocational baitLocation = _player.getFishing().getBaitLocation();
|
final ILocational baitLocation = _player.getFishing().getBaitLocation();
|
||||||
packet.writeD(baitLocation.getX()); // Confirmed
|
if (baitLocation != null)
|
||||||
packet.writeD(baitLocation.getY()); // Confirmed
|
{
|
||||||
packet.writeD(baitLocation.getZ()); // Confirmed
|
packet.writeD(baitLocation.getX()); // Confirmed
|
||||||
|
packet.writeD(baitLocation.getY()); // Confirmed
|
||||||
|
packet.writeD(baitLocation.getZ()); // Confirmed
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
packet.writeD(0);
|
||||||
|
packet.writeD(0);
|
||||||
|
packet.writeD(0);
|
||||||
|
}
|
||||||
|
|
||||||
packet.writeD(_player.getAppearance().getNameColor()); // Confirmed
|
packet.writeD(_player.getAppearance().getNameColor()); // Confirmed
|
||||||
|
|
||||||
|
@ -218,9 +218,18 @@ public class CharInfo implements IClientOutgoingPacket
|
|||||||
packet.writeC(_player.isFishing() ? 1 : 0); // Confirmed
|
packet.writeC(_player.isFishing() ? 1 : 0); // Confirmed
|
||||||
|
|
||||||
final ILocational baitLocation = _player.getFishing().getBaitLocation();
|
final ILocational baitLocation = _player.getFishing().getBaitLocation();
|
||||||
packet.writeD(baitLocation.getX()); // Confirmed
|
if (baitLocation != null)
|
||||||
packet.writeD(baitLocation.getY()); // Confirmed
|
{
|
||||||
packet.writeD(baitLocation.getZ()); // Confirmed
|
packet.writeD(baitLocation.getX()); // Confirmed
|
||||||
|
packet.writeD(baitLocation.getY()); // Confirmed
|
||||||
|
packet.writeD(baitLocation.getZ()); // Confirmed
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
packet.writeD(0);
|
||||||
|
packet.writeD(0);
|
||||||
|
packet.writeD(0);
|
||||||
|
}
|
||||||
|
|
||||||
packet.writeD(_player.getAppearance().getNameColor()); // Confirmed
|
packet.writeD(_player.getAppearance().getNameColor()); // Confirmed
|
||||||
|
|
||||||
|
@ -218,9 +218,18 @@ public class CharInfo implements IClientOutgoingPacket
|
|||||||
packet.writeC(_player.isFishing() ? 1 : 0); // Confirmed
|
packet.writeC(_player.isFishing() ? 1 : 0); // Confirmed
|
||||||
|
|
||||||
final ILocational baitLocation = _player.getFishing().getBaitLocation();
|
final ILocational baitLocation = _player.getFishing().getBaitLocation();
|
||||||
packet.writeD(baitLocation.getX()); // Confirmed
|
if (baitLocation != null)
|
||||||
packet.writeD(baitLocation.getY()); // Confirmed
|
{
|
||||||
packet.writeD(baitLocation.getZ()); // Confirmed
|
packet.writeD(baitLocation.getX()); // Confirmed
|
||||||
|
packet.writeD(baitLocation.getY()); // Confirmed
|
||||||
|
packet.writeD(baitLocation.getZ()); // Confirmed
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
packet.writeD(0);
|
||||||
|
packet.writeD(0);
|
||||||
|
packet.writeD(0);
|
||||||
|
}
|
||||||
|
|
||||||
packet.writeD(_player.getAppearance().getNameColor()); // Confirmed
|
packet.writeD(_player.getAppearance().getNameColor()); // Confirmed
|
||||||
|
|
||||||
|
@ -219,9 +219,18 @@ public class CharInfo implements IClientOutgoingPacket
|
|||||||
packet.writeC(_player.isFishing() ? 1 : 0); // Confirmed
|
packet.writeC(_player.isFishing() ? 1 : 0); // Confirmed
|
||||||
|
|
||||||
final ILocational baitLocation = _player.getFishing().getBaitLocation();
|
final ILocational baitLocation = _player.getFishing().getBaitLocation();
|
||||||
packet.writeD(baitLocation.getX()); // Confirmed
|
if (baitLocation != null)
|
||||||
packet.writeD(baitLocation.getY()); // Confirmed
|
{
|
||||||
packet.writeD(baitLocation.getZ()); // Confirmed
|
packet.writeD(baitLocation.getX()); // Confirmed
|
||||||
|
packet.writeD(baitLocation.getY()); // Confirmed
|
||||||
|
packet.writeD(baitLocation.getZ()); // Confirmed
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
packet.writeD(0);
|
||||||
|
packet.writeD(0);
|
||||||
|
packet.writeD(0);
|
||||||
|
}
|
||||||
|
|
||||||
packet.writeD(_player.getAppearance().getNameColor()); // Confirmed
|
packet.writeD(_player.getAppearance().getNameColor()); // Confirmed
|
||||||
|
|
||||||
|
@ -218,9 +218,18 @@ public class CharInfo implements IClientOutgoingPacket
|
|||||||
packet.writeC(_player.isFishing() ? 1 : 0); // Confirmed
|
packet.writeC(_player.isFishing() ? 1 : 0); // Confirmed
|
||||||
|
|
||||||
final ILocational baitLocation = _player.getFishing().getBaitLocation();
|
final ILocational baitLocation = _player.getFishing().getBaitLocation();
|
||||||
packet.writeD(baitLocation.getX()); // Confirmed
|
if (baitLocation != null)
|
||||||
packet.writeD(baitLocation.getY()); // Confirmed
|
{
|
||||||
packet.writeD(baitLocation.getZ()); // Confirmed
|
packet.writeD(baitLocation.getX()); // Confirmed
|
||||||
|
packet.writeD(baitLocation.getY()); // Confirmed
|
||||||
|
packet.writeD(baitLocation.getZ()); // Confirmed
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
packet.writeD(0);
|
||||||
|
packet.writeD(0);
|
||||||
|
packet.writeD(0);
|
||||||
|
}
|
||||||
|
|
||||||
packet.writeD(_player.getAppearance().getNameColor()); // Confirmed
|
packet.writeD(_player.getAppearance().getNameColor()); // Confirmed
|
||||||
|
|
||||||
|
@ -220,9 +220,18 @@ public class CharInfo implements IClientOutgoingPacket
|
|||||||
packet.writeC(_player.isFishing() ? 1 : 0); // Confirmed
|
packet.writeC(_player.isFishing() ? 1 : 0); // Confirmed
|
||||||
|
|
||||||
final ILocational baitLocation = _player.getFishing().getBaitLocation();
|
final ILocational baitLocation = _player.getFishing().getBaitLocation();
|
||||||
packet.writeD(baitLocation.getX()); // Confirmed
|
if (baitLocation != null)
|
||||||
packet.writeD(baitLocation.getY()); // Confirmed
|
{
|
||||||
packet.writeD(baitLocation.getZ()); // Confirmed
|
packet.writeD(baitLocation.getX()); // Confirmed
|
||||||
|
packet.writeD(baitLocation.getY()); // Confirmed
|
||||||
|
packet.writeD(baitLocation.getZ()); // Confirmed
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
packet.writeD(0);
|
||||||
|
packet.writeD(0);
|
||||||
|
packet.writeD(0);
|
||||||
|
}
|
||||||
|
|
||||||
packet.writeD(_player.getAppearance().getNameColor()); // Confirmed
|
packet.writeD(_player.getAppearance().getNameColor()); // Confirmed
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user