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 3e554e6 commit 10da078
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,9 @@ public SoundEvent getSwimHighSpeedSplashSound0() {
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 10da078

Please sign in to comment.