Add option for boats to eject players on land

This commit is contained in:
William Blake Galbreath
2025-01-05 16:56:10 -08:00
committed by granny
parent 7d90399f37
commit 1f36eb12ed
3 changed files with 12 additions and 35 deletions

View File

@@ -0,0 +1,10 @@
--- a/net/minecraft/world/entity/vehicle/AbstractBoat.java
+++ b/net/minecraft/world/entity/vehicle/AbstractBoat.java
@@ -483,6 +_,7 @@
float groundFriction = this.getGroundFriction();
if (groundFriction > 0.0F) {
this.landFriction = groundFriction;
+ if (level().purpurConfig.boatEjectPlayersOnLand) ejectPassengers(); // Purpur - Add option for boats to eject players on land
return AbstractBoat.Status.ON_LAND;
} else {
return AbstractBoat.Status.IN_AIR;