mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-13 23:04:08 +00:00
Fix Panel Held / Anchored Mode
This commit is contained in:
1 parent
9a1bd5f2f8
commit
f818568bd3
1 file changed
+11
@@ -168,6 +168,17 @@ public class EntityAbilityPanel extends EntityAbilityBarrier {
|
||||
this.prevPosZ = owner.prevPosZ + (Math.cos(prevYawRad) * frontDist);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setPositionAndRotation2(double x, double y, double z, float yaw, float pitch, int posRotationIncrements) {
|
||||
// HELD panels are fully owner-driven each tick via updateHeld().
|
||||
// Applying network position lerp on top of owner-following causes visible jitter/stutter
|
||||
// when the caster is moving, so ignore remote corrections in this mode.
|
||||
if (worldObj != null && worldObj.isRemote && mode == PanelMode.HELD && getOwnerEntity() != null) {
|
||||
return;
|
||||
}
|
||||
super.setPositionAndRotation2(x, y, z, yaw, pitch, posRotationIncrements);
|
||||
}
|
||||
|
||||
private void updateLaunched() {
|
||||
// Move forward on both sides for smooth client rendering
|
||||
this.posX += motionX;
|
||||
|
||||
Reference in new issue
Block a user