Remove unneeded boat patch (backport of #10061 to 1.20.6) (#10086)

Co-authored-by: andan42 <49289986+andan42@users.noreply.github.com>
This commit is contained in:
Paint_Ninjaandandan42 authored and GitHub committed 2024-10-06 18:27:38 -07:00
1 parent ac10315810
commit 542db422ad
1 file changed
-17
@@ -63,20 +63,3 @@
}
protected int getMaxPassengers() {
@@ -859,6 +_,16 @@
@Override
public ItemStack getPickResult() {
return new ItemStack(this.getDropItem());
+ }
+
+ // Forge: Fix MC-119811 by instantly completing lerp on board
+ @Override
+ protected void addPassenger(Entity passenger) {
+ super.addPassenger(passenger);
+ if (this.isControlledByLocalInstance() && this.lerpSteps > 0) {
+ this.lerpSteps = 0;
+ this.absMoveTo(this.lerpX, this.lerpY, this.lerpZ, (float)this.lerpYRot, (float)this.lerpXRot);
+ }
}
public static enum Status {