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-13 17:53:32 +02:00
|
|
|
index 0566088538c2b99ff74a408b67a9edee4751f904..db5e7cb183682f5cf7049190ae49a835738a065e 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-13 17:53:32 +02:00
|
|
|
@@ -231,4 +231,9 @@ public class YatopiaConfig {
|
|
|
|
simplerVillagerBehavior = getBoolean("settings.villager.simplerVillagerBehavior", false);
|
2020-08-06 20:54:26 +02:00
|
|
|
villagersHideAtNight = getBoolean("settings.villager.villagersHideAtNight", false);
|
|
|
|
}
|
|
|
|
+
|
|
|
|
+ public static boolean fixFallDistance = false;
|
|
|
|
+ private static void fixFallDistance() {
|
2020-08-13 17:53:32 +02:00
|
|
|
+ fixFallDistance = getBoolean("settings.fixFallDistance", false);
|
2020-08-06 20:54:26 +02:00
|
|
|
+ }
|
|
|
|
}
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/Entity.java b/src/main/java/net/minecraft/server/Entity.java
|
2020-08-13 17:53:32 +02:00
|
|
|
index 724aab2cc747940e31c01a52a258e3519e6bda79..e19d363e76158335acbabaee2bae295dfee38cf8 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-13 17:53:32 +02:00
|
|
|
@@ -1264,6 +1264,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
|
2020-08-13 17:53:32 +02:00
|
|
|
+ this.fallDistance = 0.0F; // Yatopia
|
2020-08-06 20:54:26 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|