From 89a384820fa09919887eaa9435ba06ecd8828cc2 Mon Sep 17 00:00:00 2001 From: Atsuihsio <842960157@qq.com> Date: Sun, 10 Nov 2024 01:57:49 +0800 Subject: [PATCH] test --- .../java/net/mcreator/superbwarfare/entity/MortarEntity.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/mcreator/superbwarfare/entity/MortarEntity.java b/src/main/java/net/mcreator/superbwarfare/entity/MortarEntity.java index 453f265fb..3ba4296ac 100644 --- a/src/main/java/net/mcreator/superbwarfare/entity/MortarEntity.java +++ b/src/main/java/net/mcreator/superbwarfare/entity/MortarEntity.java @@ -144,6 +144,7 @@ public class MortarEntity extends Entity implements GeoEntity, AnimatedEntity { this.setYBodyRot(this.getYRot()); this.setYHeadRot(this.getYRot()); this.yRotO = this.getYRot(); + this.setRot(this.getYRot(), this.getXRot()); } if (mainHandItem.getItem() == ModItems.MORTAR_SHELLS.get() && !player.isShiftKeyDown() && this.entityData.get(FIRE_TIME) == 0) { this.entityData.set(FIRE_TIME, 25); @@ -170,7 +171,7 @@ public class MortarEntity extends Entity implements GeoEntity, AnimatedEntity { }); } - return InteractionResult.sidedSuccess(this.level().isClientSide()); + return InteractionResult.SUCCESS; } @Override