移除无用过程

This commit is contained in:
Light_Quanta 2024-05-11 02:46:38 +08:00
parent 3e3500e43a
commit 8c9cd37009
No known key found for this signature in database
GPG key ID: 11A39A1B8C890959

View file

@ -1,25 +0,0 @@
package net.mcreator.target.procedures;
import net.minecraft.world.entity.Entity;
import net.minecraft.world.entity.LivingEntity;
public class CannonAngleProcedure {
public static void execute(Entity entity) {
if (entity == null)
return;
if (entity.getXRot() > -20) {
{
entity.setYRot(entity.getYRot());
entity.setXRot(-20);
entity.setYBodyRot(entity.getYRot());
entity.setYHeadRot(entity.getYRot());
entity.yRotO = entity.getYRot();
entity.xRotO = entity.getXRot();
if (entity instanceof LivingEntity _entity) {
_entity.yBodyRotO = _entity.getYRot();
_entity.yHeadRotO = _entity.getYRot();
}
}
}
}
}