Fixed an issue where ability deltas weren't being sent

This commit is contained in:
Seefo
2014-06-04 22:04:50 -04:00
parent 79ab29dd68
commit a4254e262b
+11 -5
View File
@@ -194,13 +194,19 @@ public class SWGMap<K, V> implements Map<K, V>, Serializable {
K key = entry.getKey();
V value = entry.getValue();
if (valid(key) && valid(value)) {
if (map.containsKey(key)) {
if (map.put(key, value) != null) {
if (valid(key) && valid(value))
{
if (map.containsKey(key))
{
if (map.put(key, value) != null)
{
buffer.add(item(2, key, Baseline.toBytes(value), true, true));
}
} else {
if (map.put(key, value) != null) {
}
else
{
if(map.put(key, value) == null)
{
buffer.add(item(0, key, Baseline.toBytes(value), true, true));
}
}