-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
migrated pre-hard-fork patch 0014-added-option-to-disable-elytra-in-e…
…nd-cities.patch
- Loading branch information
1 parent
27fdd29
commit 70a154c
Showing
3 changed files
with
21 additions
and
31 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
.../sources/net/minecraft/world/level/levelgen/structure/structures/EndCityPieces.java.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- a/net/minecraft/world/level/levelgen/structure/structures/EndCityPieces.java | ||
+++ b/net/minecraft/world/level/levelgen/structure/structures/EndCityPieces.java | ||
@@ -402,7 +_,7 @@ | ||
shulker.setPos(pos.getX() + 0.5, pos.getY(), pos.getZ() + 0.5); | ||
level.addFreshEntity(shulker); | ||
} | ||
- } else if (name.startsWith("Elytra")) { | ||
+ } else if (name.startsWith("Elytra") && io.papermc.paper.configuration.GlobalConfiguration.get().misc.enableElytraInEndCities) { // Cheetah - Added option to disable elytra in end cities | ||
ItemFrame itemFrame = new ItemFrame(level.getLevel(), pos, this.placeSettings.getRotation().rotate(Direction.SOUTH)); | ||
itemFrame.setItem(new ItemStack(Items.ELYTRA), false); | ||
level.addFreshEntity(itemFrame); |
10 changes: 10 additions & 0 deletions
10
...patches/files/src/main/java/io/papermc/paper/configuration/GlobalConfiguration.java.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- a/src/main/java/io/papermc/paper/configuration/GlobalConfiguration.java | ||
+++ b/src/main/java/io/papermc/paper/configuration/GlobalConfiguration.java | ||
@@ -344,6 +_,7 @@ | ||
public IntOr.Default compressionLevel = IntOr.Default.USE_DEFAULT; | ||
@Comment("Defines the leniency distance added on the server to the interaction range of a player when validating interact packets.") | ||
public DoubleOr.Default clientInteractionLeniencyDistance = DoubleOr.Default.USE_DEFAULT; | ||
+ public boolean enableElytraInEndCities = true; // Cheetah - Added option to disable elytra in end cities | ||
} | ||
|
||
public BlockUpdates blockUpdates; |
31 changes: 0 additions & 31 deletions
31
patches/server/0014-added-option-to-disable-elytra-in-end-cities.patch
This file was deleted.
Oops, something went wrong.