mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-01-17 00:05:17 -05:00
MODIFIED CreatureObject.setPosture to use refactored stopPerformance method
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user