Removed unneeded boat patch related to MC-119811 (#10061)

This commit is contained in:
andan42 authored and GitHub committed 2024-08-07 21:49:40 -07:00
1 parent 4995902bc0
commit 0ca1d0ebd0
1 file changed
-17
@@ -63,20 +63,3 @@
}
protected int getMaxPassengers() {
@@ -904,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 {