mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-20 09:57:43 +01:00
Upstream has released updates that appears to apply and compile correctly Paper Changes: 7329e19c Updated Upstream (CraftBukkit) b3a97d14 Fix startup errors when double clicking jar (#2903) b51fbefc Revert "Fix errors on startup when double clicking jar (#2901)" a0438fab Fix errors on startup when double clicking jar (#2901) e0da6d4b Seed based feature search (Fixes #2312) (#2852) 78dfb77e Updated Upstream (Bukkit/CraftBukkit) 969ef51a Init legacy material data c4714909 Fix items vanishing through end portal (Resolves #2681) (#2894) 74b0ef39 Updated Upstream (CraftBukkit)
42 lines
1.8 KiB
Diff
42 lines
1.8 KiB
Diff
From 9088e3e2ea32fb54c89c4c66fd0d99411add6d90 Mon Sep 17 00:00:00 2001
|
|
From: William Blake Galbreath <blake.galbreath@gmail.com>
|
|
Date: Sat, 7 Sep 2019 22:47:59 -0500
|
|
Subject: [PATCH] Add option for boats to eject players on land
|
|
|
|
---
|
|
src/main/java/net/minecraft/server/EntityBoat.java | 1 +
|
|
src/main/java/net/pl3x/purpur/PurpurWorldConfig.java | 5 +++++
|
|
2 files changed, 6 insertions(+)
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/EntityBoat.java b/src/main/java/net/minecraft/server/EntityBoat.java
|
|
index 563fc8ced..479ed7c7b 100644
|
|
--- a/src/main/java/net/minecraft/server/EntityBoat.java
|
|
+++ b/src/main/java/net/minecraft/server/EntityBoat.java
|
|
@@ -431,6 +431,7 @@ public class EntityBoat extends Entity {
|
|
|
|
if (f > 0.0F) {
|
|
this.aE = f;
|
|
+ if (world.purpurConfig.boatEjectPlayersOnLand) ejectPassengers(); // Purpur
|
|
return EntityBoat.EnumStatus.ON_LAND;
|
|
} else {
|
|
return EntityBoat.EnumStatus.IN_AIR;
|
|
diff --git a/src/main/java/net/pl3x/purpur/PurpurWorldConfig.java b/src/main/java/net/pl3x/purpur/PurpurWorldConfig.java
|
|
index 38d85c638..b2c62de05 100644
|
|
--- a/src/main/java/net/pl3x/purpur/PurpurWorldConfig.java
|
|
+++ b/src/main/java/net/pl3x/purpur/PurpurWorldConfig.java
|
|
@@ -70,6 +70,11 @@ public class PurpurWorldConfig {
|
|
bambooSmallHeight = getInt("bamboo.small-height", bambooSmallHeight);
|
|
}
|
|
|
|
+ public boolean boatEjectPlayersOnLand = false;
|
|
+ private void boatEjectPlayersOnLand() {
|
|
+ boatEjectPlayersOnLand = getBoolean("boat-eject-players-on-land", boatEjectPlayersOnLand);
|
|
+ }
|
|
+
|
|
public boolean campfireObeysGravity = true;
|
|
private void campfireObeysGravity() {
|
|
campfireObeysGravity = getBoolean("campfire-obeys-gravity", campfireObeysGravity);
|
|
--
|
|
2.24.0
|
|
|