Skip to content

Commit

Permalink
This is commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
s-yh-china committed Jun 30, 2024
1 parent d30dbfa commit 6aefee0
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ version=1.21-R0.1-SNAPSHOT

mcVersion=1.21
org.gradle.jvmargs=-Xmx2G
paperRef=1f5db504244fe6563ab32cee646dad0c53360e01
paperRef=aa8d38d3dbab3cb0021d0f24f726818caf77bf15
preVersion=true
updatingMinecraft=true
22 changes: 19 additions & 3 deletions patches/server/0006-Leaves-Server-Config-And-Command.patch
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,10 @@ index 459f47244bdfeab63b5f16d780b0291d36310de8..a872421bc3e67fdcc929f104f4b085fb
.withRequiredArg()
diff --git a/src/main/java/org/leavesmc/leaves/LeavesConfig.java b/src/main/java/org/leavesmc/leaves/LeavesConfig.java
new file mode 100644
index 0000000000000000000000000000000000000000..afe13ae207eaa294e3299f15874d28df3a55e32d
index 0000000000000000000000000000000000000000..529144dcbcd9b2d4f251ffed93ba81ce702d56fe
--- /dev/null
+++ b/src/main/java/org/leavesmc/leaves/LeavesConfig.java
@@ -0,0 +1,888 @@
@@ -0,0 +1,904 @@
+package org.leavesmc.leaves;
+
+import com.destroystokyo.paper.util.SneakyThrow;
Expand Down Expand Up @@ -418,9 +418,19 @@ index 0000000000000000000000000000000000000000..afe13ae207eaa294e3299f15874d28df
+ @GlobalConfig(name = "bedrock-break-list", category = "modify", lock = true)
+ public static boolean bedrockBreakList = false;
+
+ @GlobalConfig(name = "disable-distance-check-for-use-item", category = "modify")
+ @GlobalConfig(name = "disable-distance-check-for-use-item", category = "modify", verify = DisableDistanceCheckForUseItemVerify.class)
+ public static boolean disableDistanceCheckForUseItem = false;
+
+ private static class DisableDistanceCheckForUseItemVerify extends ConfigVerify.BooleanConfigVerify {
+ @Override
+ public String check(Boolean old, Boolean value) {
+ if (alternativeBlockPlacement != AlternativePlaceType.NONE && !value) {
+ return "alternative-block-placement is enable, disable-distance-check-for-use-item always need true";
+ }
+ return null;
+ }
+ }
+
+ @GlobalConfig(name = "no-feather-falling-trample", category = "modify")
+ public static boolean noFeatherFallingTrample = false;
+
Expand Down Expand Up @@ -805,6 +815,12 @@ index 0000000000000000000000000000000000000000..afe13ae207eaa294e3299f15874d28df
+ }
+
+ private static class AlternativePlaceVerify extends ConfigVerify.EnumConfigVerify<AlternativePlaceType> {
+ @Override
+ public void runAfterLoader(Enum<AlternativePlaceType> value) {
+ if (value != AlternativePlaceType.NONE) {
+ disableDistanceCheckForUseItem = true;
+ }
+ }
+ }
+
+ @GlobalConfig(name = "appleskin-protocol", category = "protocol")
Expand Down

0 comments on commit 6aefee0

Please sign in to comment.