MODIFIED CreatureObject.setPosture to use refactored stopPerformance method

This commit is contained in:
wallaceg09
2014-11-07 22:04:37 -06:00
parent 88a0271216
commit 92deb58321
2 changed files with 3 additions and 2 deletions

View File

@@ -367,7 +367,8 @@ public class CreatureObject extends TangibleObject implements IPersistent {
}
if (getPosture() == resources.datatables.Posture.SkillAnimating) {
stopPerformance();//FIXME: Find a way to do this with EntertainmentService
//stopPerformance();
NGECore.getInstance().entertainmentService.stopPerformance(this);
}
if (getPosture() == posture) {

View File

@@ -733,7 +733,7 @@ public class EntertainmentService implements INetworkDispatch {
String performanceType = (performance.getType() == DANCE)? "dance" : "music";
// actor.sendSystemMessage(String.format("@performance:%s_stop_self", performanceType), (byte)0);//FIXME: This hasn't been sending the correct message
actor.sendSystemMessage(String.format("@performance:%s_stop_self", performanceType), (byte)0);//FIXME: This hasn't been sending the correct message
stopAudience(actor);
if (actor.isPerforming()) {