This commit is contained in:
Treeku
2014-05-11 15:56:36 +01:00
51 changed files with 682 additions and 170 deletions
@@ -312,7 +312,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)
@@ -320,7 +322,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);
}
}