mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-21 12:42:26 +00:00
Co-authored-by: andan42 <[email protected]>
This commit is contained in:
1 parent
d3e9cfaaba
commit
d7ccecefe0
1 file changed
-17
@@ -63,20 +63,3 @@
|
||||
}
|
||||
|
||||
protected int getMaxPassengers() {
|
||||
@@ -817,6 +_,16 @@
|
||||
|
||||
public boolean isUnderWater() {
|
||||
return this.status == Boat.Status.UNDER_WATER || this.status == Boat.Status.UNDER_FLOWING_WATER;
|
||||
+ }
|
||||
+
|
||||
+ // 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 ItemStack getPickResult() {
|
||||
Reference in new issue
Block a user