mirror of
https://github.com/YatopiaMC/Yatopia.git
synced 2025-01-01 05:58:02 +01:00
5f55124016
This update had major internal changes, which took us 8 hours to figure out and resolve all things untill we have a successful build. YatopiaMC members wish you happy playing using Yatopia for your server software MAKE A BACKUP OF YOUR WORLD BEFORE RUNNING IT ON YOUR SERVER. YOU HAVE BEEN WARNED. People have reported to paper that after upgrading villagers are gone. There could be even more issues we are unknown of. MAKE A BACKUP OF YOUR WORLD BEFORE RUNNING IT ON YOUR SERVER. YOU HAVE BEEN WARNED. Co-authored-by: Ovydux <68059159+Ovydux@users.noreply.github.com> Co-authored-by: Simon Gardling <Titaniumtown@gmail.com> Co-authored-by: budgidiere <sgidiere@gmail.com>
51 lines
2.2 KiB
Diff
51 lines
2.2 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: tr7zw <tr7zw@live.de>
|
|
Date: Fri, 31 Jul 2020 21:28:00 -0500
|
|
Subject: [PATCH] Allow to change the piston push limit
|
|
|
|
|
|
diff --git a/src/main/java/dev/tr7zw/yatopia/YatopiaConfig.java b/src/main/java/dev/tr7zw/yatopia/YatopiaConfig.java
|
|
index 0e5f090e4160d08bce0b46ac4cb6d3d3510128bf..c0965eb0b6ef615ab89ffc5942d6a4e92a0d4a67 100644
|
|
--- a/src/main/java/dev/tr7zw/yatopia/YatopiaConfig.java
|
|
+++ b/src/main/java/dev/tr7zw/yatopia/YatopiaConfig.java
|
|
@@ -215,4 +215,8 @@ public class YatopiaConfig {
|
|
disableEntityCollisionboxes = getBoolean("settings.disableEntityCollisionboxes", false);
|
|
}
|
|
|
|
+ public static int pistonPushLimit = 12;
|
|
+ private static void pistonPushLimit() {
|
|
+ pistonPushLimit = getInt("settings.pistonPushLimit", 12);
|
|
+ }
|
|
}
|
|
diff --git a/src/main/java/net/minecraft/server/PistonExtendsChecker.java b/src/main/java/net/minecraft/server/PistonExtendsChecker.java
|
|
index 95aeaaf0bb07c5ecf7117dae3382b0f0aac6426f..89385896af6f6088a9749a13ad5c1d0c581fa502 100644
|
|
--- a/src/main/java/net/minecraft/server/PistonExtendsChecker.java
|
|
+++ b/src/main/java/net/minecraft/server/PistonExtendsChecker.java
|
|
@@ -79,7 +79,7 @@ public class PistonExtendsChecker {
|
|
} else {
|
|
int i = 1;
|
|
|
|
- if (i + this.f.size() > 12) {
|
|
+ if (i + this.f.size() > dev.tr7zw.yatopia.YatopiaConfig.pistonPushLimit) { // Yatopia
|
|
return false;
|
|
} else {
|
|
while (a(block)) {
|
|
@@ -93,7 +93,7 @@ public class PistonExtendsChecker {
|
|
}
|
|
|
|
++i;
|
|
- if (i + this.f.size() > 12) {
|
|
+ if (i + this.f.size() > dev.tr7zw.yatopia.YatopiaConfig.pistonPushLimit) { // Yatopia
|
|
return false;
|
|
}
|
|
}
|
|
@@ -141,7 +141,7 @@ public class PistonExtendsChecker {
|
|
return true;
|
|
}
|
|
|
|
- if (this.f.size() >= 12) {
|
|
+ if (this.f.size() >= dev.tr7zw.yatopia.YatopiaConfig.pistonPushLimit) { // Yatopia
|
|
return false;
|
|
}
|
|
|