Suppress pose change event during worldgen (#1302)

This commit is contained in:
IzzelAliz 2024-04-12 02:56:56 +00:00
parent 3e554e6ea5
commit 10da078de0

View File

@ -317,8 +317,10 @@ public abstract class EntityMixin implements InternalEntityBridge, EntityBridge,
return;
}
EntityPoseChangeEvent event = new EntityPoseChangeEvent(this.internal$getBukkitEntity(), BukkitRegistry.toBukkitPose(poseIn));
if (this.valid) {
Bukkit.getPluginManager().callEvent(event);
}
}
@Inject(method = "setRot", cancellable = true, at = @At(value = "HEAD"))
public void arclight$infCheck(float yaw, float pitch, CallbackInfo ci) {