diff options
author | Jake Potrebic <[email protected]> | 2022-05-25 18:00:47 -0700 |
---|---|---|
committer | GitHub <[email protected]> | 2022-05-25 18:00:47 -0700 |
commit | 79e07f34ac7c41174d423303c73f3f1438be7031 (patch) | |
tree | 07c93214ad96c44ec6673e2d863d4bef5d0d59d8 | |
parent | a90092e7580b32293891acee1f9426f4d2a9ec36 (diff) | |
download | Paper-79e07f34ac7c41174d423303c73f3f1438be7031.tar.gz Paper-79e07f34ac7c41174d423303c73f3f1438be7031.zip |
Fix addPassenger for Marker (#7762)
-rw-r--r-- | patches/server/0006-CB-fixes.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/patches/server/0006-CB-fixes.patch b/patches/server/0006-CB-fixes.patch index ba08b3a039..c35f0ec57b 100644 --- a/patches/server/0006-CB-fixes.patch +++ b/patches/server/0006-CB-fixes.patch @@ -8,6 +8,8 @@ Subject: [PATCH] CB fixes * Removed incorrect parent perm for `minecraft.debugstick.always` +* Fixed method signature of Marker#addPassenger + diff --git a/src/main/java/net/minecraft/server/level/ServerLevel.java b/src/main/java/net/minecraft/server/level/ServerLevel.java index a480e20ac456a3169c67d2d43c191b7807a8ef10..1427b76110a02cee15865173e06e7b7bb4231ae7 100644 --- a/src/main/java/net/minecraft/server/level/ServerLevel.java @@ -21,6 +23,21 @@ index a480e20ac456a3169c67d2d43c191b7807a8ef10..1427b76110a02cee15865173e06e7b7b this.structureFeatureManager = new StructureFeatureManager(this, this.serverLevelData.worldGenSettings(), this.structureCheck); // CraftBukkit if (this.dimensionType().createDragonFight()) { this.dragonFight = new EndDragonFight(this, this.serverLevelData.worldGenSettings().seed(), this.serverLevelData.endDragonFightData()); // CraftBukkit +diff --git a/src/main/java/net/minecraft/world/entity/Marker.java b/src/main/java/net/minecraft/world/entity/Marker.java +index aef33a96cf8df9400cc60285ef1f7c5ded03b495..059c4c3b59f66ea2b2b23fe1eb106bf9447b607c 100644 +--- a/src/main/java/net/minecraft/world/entity/Marker.java ++++ b/src/main/java/net/minecraft/world/entity/Marker.java +@@ -38,8 +38,9 @@ public class Marker extends Entity { + } + + @Override +- protected void addPassenger(Entity passenger) { ++ protected boolean addPassenger(Entity passenger) { // Paper - fix upstream + passenger.stopRiding(); ++ return false; // Paper - fix upstream + } + + @Override diff --git a/src/main/java/net/minecraft/world/level/levelgen/structure/StructureCheck.java b/src/main/java/net/minecraft/world/level/levelgen/structure/StructureCheck.java index 5862fd38fb2a5aeec0a63d001cc043aac62188bb..22e3ac8c5df5592e31ef3f00f102aa3a25e794b4 100644 --- a/src/main/java/net/minecraft/world/level/levelgen/structure/StructureCheck.java |