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);