@@ -78,14 +78,14 @@
|
||||
@@ -204,6 +263,12 @@
|
||||
}
|
||||
|
||||
protected void b(EntityPose entitypose) {
|
||||
protected void setPose(EntityPose entitypose) {
|
||||
+ // CraftBukkit start
|
||||
+ if (entitypose == this.Z()) {
|
||||
+ if (entitypose == this.getPose()) {
|
||||
+ return;
|
||||
+ }
|
||||
+ this.world.getServer().getPluginManager().callEvent(new EntityPoseChangeEvent(this.getBukkitEntity(), Pose.values()[entitypose.ordinal()]));
|
||||
+ // CraftBukkit end
|
||||
this.datawatcher.set(Entity.X, entitypose);
|
||||
this.datawatcher.set(Entity.POSE, entitypose);
|
||||
}
|
||||
|
||||
@@ -212,6 +277,33 @@
|
||||
|
||||
Reference in New Issue
Block a user