From 3dfcf7764a2acb90f4e29e336c6e0d6d6a3c598a Mon Sep 17 00:00:00 2001 From: KAMKEEL <28842281+KAMKEEL@users.noreply.github.com> Date: Tue, 11 Aug 2026 15:38:55 -0400 Subject: [PATCH] Log client interpolation state alongside the hitbox probe --- gradle.properties | 2 +- .../java/noppes/npcs/entity/EntityNPCInterface.java | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index f2e101204..d0548accd 100644 --- a/gradle.properties +++ b/gradle.properties @@ -199,7 +199,7 @@ disableCheckstyle = true # ideaCheckSpotlessOnBuild = true # Non-GTNH properties -modVersion = 1.11.0 +modVersion = 1.11.1 # Increase Gradle's JVM memory usage to avoid daemon expiration due to # insufficient heap space on CI builds. diff --git a/src/main/java/noppes/npcs/entity/EntityNPCInterface.java b/src/main/java/noppes/npcs/entity/EntityNPCInterface.java index e1a968c9f..072a1f23d 100644 --- a/src/main/java/noppes/npcs/entity/EntityNPCInterface.java +++ b/src/main/java/noppes/npcs/entity/EntityNPCInterface.java @@ -1403,6 +1403,17 @@ public abstract class EntityNPCInterface extends EntityCreature implements IEnti .append(" motionY=").append(fmt(motionY)) .append(" fallDist=").append(fmt(fallDistance)); + // Client only runs the interpolation branch while newPosRotationIncrements > 0; once it + // hits 0 it free-simulates gravity and collision until the next position packet. + if (worldObj != null && worldObj.isRemote) { + sb.append(" | incr=").append(newPosRotationIncrements) + .append(" target=[").append(fmt(newPosX)).append(",").append(fmt(newPosY)).append(",").append(fmt(newPosZ)).append("]") + .append(" dTarget=").append(fmt(Math.sqrt( + (newPosX - posX) * (newPosX - posX) + + (newPosY - posY) * (newPosY - posY) + + (newPosZ - posZ) * (newPosZ - posZ)))); + } + int bx = MathHelper.floor_double(posX); int bz = MathHelper.floor_double(posZ); int by = MathHelper.floor_double(boundingBox.minY - 0.0625D);