Fixed setCustomizationVariable not updating customization byte array

This commit is contained in:
Waverunner
2014-05-10 19:56:02 -04:00
parent 82d8108ac7
commit f57444e942
@@ -311,7 +311,9 @@ public class TangibleObject extends SWGObject implements Serializable {
if(customizationVariables.containsKey(type)) customizationVariables.replace(type, value);
else customizationVariables.put(type, value);
notifyObservers(messageBuilder.buildCustomizationDelta(getCustomizationBytes()), true);
byte[] customizationBytes = getCustomizationBytes();
customization = customizationBytes;
notifyObservers(messageBuilder.buildCustomizationDelta(customizationBytes), true);
}
public void removeCustomizationVariable(String type)
@@ -319,7 +321,9 @@ public class TangibleObject extends SWGObject implements Serializable {
if(customizationVariables.containsKey(type))
{
customizationVariables.remove(type);
notifyObservers(messageBuilder.buildCustomizationDelta(getCustomizationBytes()), true);
byte[] customizationBytes = getCustomizationBytes();
customization = customizationBytes;
notifyObservers(messageBuilder.buildCustomizationDelta(customizationBytes), true);
}
}