Skip to content

Commit

Permalink
Suppress pose change event during worldgen (#1302)
Browse files Browse the repository at this point in the history
  • Loading branch information
IzzelAliz committed Apr 12, 2024
1 parent b9e13fe commit ecd493d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,9 @@ public void remove(Entity.RemovalReason removalReason, EntityRemoveEvent.Cause c
return;
}
EntityPoseChangeEvent event = new EntityPoseChangeEvent(this.internal$getBukkitEntity(), BukkitRegistry.toBukkitPose(poseIn));
Bukkit.getPluginManager().callEvent(event);
if (this.valid) {
Bukkit.getPluginManager().callEvent(event);
}
}

@Inject(method = "setRot", cancellable = true, at = @At(value = "HEAD"))
Expand Down

0 comments on commit ecd493d

Please sign in to comment.