mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-07-31 01:15:57 -04:00
fixed waypoint crash
This commit is contained in:
@@ -158,9 +158,8 @@ public class WaypointObject extends IntangibleObject implements Serializable, ID
|
||||
|
||||
@Override
|
||||
public byte[] getBytes() {
|
||||
IoBuffer buffer = bufferPool.allocate(50 + name.length() * 2, false).order(ByteOrder.LITTLE_ENDIAN);
|
||||
IoBuffer buffer = bufferPool.allocate(42 + name.length() * 2, false).order(ByteOrder.LITTLE_ENDIAN);
|
||||
|
||||
buffer.putLong(getObjectID());
|
||||
buffer.putInt(getCellId());
|
||||
|
||||
buffer.putFloat(getPosition().x);
|
||||
|
||||
@@ -780,6 +780,8 @@ public class BazaarService implements INetworkDispatch {
|
||||
}
|
||||
|
||||
public void addAuctionItem(AuctionItem auctionItem) {
|
||||
if(auctionItem == null)
|
||||
return;
|
||||
auctionItems.add(auctionItem);
|
||||
int commodityNumber = 0;
|
||||
if(commodityLimit.get(auctionItem.getOwnerId()) != null)
|
||||
|
||||
Reference in New Issue
Block a user