2020-08-06 20:54:26 +02:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: tr7zw <tr7zw@live.de>
|
|
|
|
Date: Tue, 4 Aug 2020 22:08:09 +0200
|
|
|
|
Subject: [PATCH] Fix lead fall dmg config
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/dev/tr7zw/yatopia/YatopiaConfig.java b/src/main/java/dev/tr7zw/yatopia/YatopiaConfig.java
|
2020-08-11 20:40:29 +02:00
|
|
|
index d8e3bbb2ffbf20a111af3fd7a019daf1d5a7dead..325d1fe8f91bdfa82a53a5f1f86804d04f973090 100644
|
2020-08-06 20:54:26 +02:00
|
|
|
--- a/src/main/java/dev/tr7zw/yatopia/YatopiaConfig.java
|
|
|
|
+++ b/src/main/java/dev/tr7zw/yatopia/YatopiaConfig.java
|
2020-08-11 17:38:17 +02:00
|
|
|
@@ -225,4 +225,10 @@ public class YatopiaConfig {
|
2020-08-06 20:54:26 +02:00
|
|
|
private static void villagersHideAtNight() {
|
|
|
|
villagersHideAtNight = getBoolean("settings.villager.villagersHideAtNight", false);
|
|
|
|
}
|
|
|
|
+
|
|
|
|
+ public static boolean fixFallDistance = false;
|
|
|
|
+ private static void fixFallDistance() {
|
2020-08-11 20:40:29 +02:00
|
|
|
+ fixFallDistance = getBoolean("settings.fixFallDistance", false);
|
2020-08-06 20:54:26 +02:00
|
|
|
+ }
|
|
|
|
+
|
|
|
|
}
|
|
|
|
\ No newline at end of file
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/Entity.java b/src/main/java/net/minecraft/server/Entity.java
|
2020-08-11 20:40:29 +02:00
|
|
|
index fe0689f6be466d1a2a1ed2b76331272199a0aa0c..eef7128a81b58089a2ea2495264a7e94104668a8 100644
|
2020-08-06 20:54:26 +02:00
|
|
|
--- a/src/main/java/net/minecraft/server/Entity.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/Entity.java
|
2020-08-11 20:40:29 +02:00
|
|
|
@@ -1266,6 +1266,8 @@ public abstract class Entity implements INamableTileEntity, ICommandListener, Ke
|
2020-08-06 20:54:26 +02:00
|
|
|
this.fallDistance = 0.0F;
|
|
|
|
} else if (d0 < 0.0D) {
|
|
|
|
this.fallDistance = (float) ((double) this.fallDistance - d0);
|
2020-08-11 20:40:29 +02:00
|
|
|
+ } else if (d0 > 0.0D && dev.tr7zw.yatopia.YatopiaConfig.fixFallDistance) { // Yatopia
|
|
|
|
+ this.fallDistance = 0.0F; // Yatopia
|
2020-08-06 20:54:26 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|