mirror of
https://github.com/ProjectSWGCore/Holocore.git
synced 2026-10-18 08:02:56 -04:00
Owner is now set for PlayerObject, Moved requestWaypointAtPosition to java, Updated SWGMap constructors,
This commit is contained in:
@@ -103,7 +103,7 @@ public class WaypointObject extends IntangibleObject implements Encodable{
|
||||
|
||||
@Override
|
||||
public byte[] encode() {
|
||||
ByteBuffer bb = ByteBuffer.allocate(34 + name.length() * 2);
|
||||
ByteBuffer bb = ByteBuffer.allocate(42 + name.length() * 2);
|
||||
bb.putInt(cellNumber);
|
||||
bb.putFloat((float) getLocation().getX());
|
||||
bb.putFloat((float) getLocation().getY());
|
||||
@@ -111,7 +111,8 @@ public class WaypointObject extends IntangibleObject implements Encodable{
|
||||
bb.putLong(targetId); // unsure when this is anything but 0, have yet to see it change
|
||||
bb.putInt(getLocation().getTerrain().getCrc());
|
||||
bb.putInt(name.length());
|
||||
bb.put(name.getBytes(Charset.forName("UTF-16LE")));
|
||||
bb.put(name.getBytes(Charset.forName("UTF-16LE")));
|
||||
bb.putLong(getObjectId());
|
||||
bb.put((byte) color);
|
||||
bb.put((byte) (active ? 1 : 0));
|
||||
return bb.array();
|
||||
|
||||
Reference in New Issue
Block a user