mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-10-03 18:13:11 -04:00
Merge branch 'master' of https://github.com/ProjectSWGCore/NGECore2
Conflicts: scripts/commands/setgodmode.py
This commit is contained in:
@@ -150,6 +150,17 @@ public class TangibleMessageBuilder extends ObjectMessageBuilder {
|
||||
|
||||
}
|
||||
|
||||
public IoBuffer buildCustomizationDelta(byte[] customization) {
|
||||
IoBuffer buffer = bufferPool.allocate(customization.length, false).order(ByteOrder.LITTLE_ENDIAN);
|
||||
|
||||
buffer.put(customization);
|
||||
|
||||
int size = buffer.position();
|
||||
buffer.flip();
|
||||
buffer = createDelta("TANO", (byte) 3, (short) 1, (short) 6, buffer, size + 4);
|
||||
return buffer;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void sendListDelta(byte viewType, short updateType, IoBuffer buffer) {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
@@ -123,7 +123,11 @@ public class TangibleObject extends SWGObject {
|
||||
}
|
||||
|
||||
public void setCustomization(byte[] customization) {
|
||||
this.customization = customization;
|
||||
synchronized(objectMutex) {
|
||||
this.customization = customization;
|
||||
}
|
||||
|
||||
notifyObservers(messageBuilder.buildCustomizationDelta(customization), false);
|
||||
}
|
||||
|
||||
public List<Integer> getComponentCustomizations() {
|
||||
|
||||
Reference in New Issue
Block a user