From fddcd1177cbc8ec9b4b51e0b95750b674d87a749 Mon Sep 17 00:00:00 2001 From: quat1024 Date: Thu, 11 Jul 2024 22:54:48 -0400 Subject: [PATCH] Move the Pike detection point down so they work with a block on top. Fixes #4845 --- .../org/violetmoon/quark/content/tools/entity/SkullPike.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/violetmoon/quark/content/tools/entity/SkullPike.java b/src/main/java/org/violetmoon/quark/content/tools/entity/SkullPike.java index a1b4a48394..d91f2c4981 100644 --- a/src/main/java/org/violetmoon/quark/content/tools/entity/SkullPike.java +++ b/src/main/java/org/violetmoon/quark/content/tools/entity/SkullPike.java @@ -52,7 +52,7 @@ public void tick() { } public boolean isVisible(Entity entityIn) { - Vec3 vector3d = new Vec3(getX(), getY() + 1, getZ()); + Vec3 vector3d = new Vec3(getX(), getEyeY(), getZ()); Vec3 vector3d1 = new Vec3(entityIn.getX(), entityIn.getEyeY(), entityIn.getZ()); return level().clip(new ClipContext(vector3d, vector3d1, ClipContext.Block.COLLIDER, ClipContext.Fluid.NONE, this)).getType() == HitResult.Type.MISS; }