fixed #337 and removed some lock contention

This commit is contained in:
Light2
2014-03-31 01:18:52 +02:00
parent ba3b423ea6
commit dc03c31276
4 changed files with 22 additions and 16 deletions
@@ -1225,9 +1225,9 @@ public class CreatureObject extends TangibleObject implements IPersistent {
setHamListCounter(getHamListCounter() + 1);
delta = messageBuilder.buildHealthDelta(health);
notifyObservers(delta, true);
this.health = health;
}
notifyObservers(delta, true);
}
@@ -1249,9 +1249,10 @@ public class CreatureObject extends TangibleObject implements IPersistent {
}
setHamListCounter(getHamListCounter() + 1);
delta = messageBuilder.buildActionDelta(action);
notifyObservers(delta, true);
this.action = action;
}
}
notifyObservers(delta, true);
}
public int getHamListCounter() {