Yatopia/patches/server/0025-Fix-lead-fall-dmg-config.patch
Ivan Pekov cc7670f815
Updated Upstream and Sidestream(s) (Tuinity/EMC/Purpur/AirplaneLite)
Upstream/An Sidestream has released updates that appears to apply and compile correctly
This update has NOT been tested by YatopiaMC and as with ANY update, please do your own testing.

Tuinity Changes:
de6c239 Merge branch 'master' of https://github.com/Spottedleaf/Tuinity into ver/1.16.4
cc34294 Copy passenger list in enderTeleportTo
8c5d945 Improve abnormal server shutdown process
0ae7e67 Do not load chunks during a crash report
0fbcf78 Fix small issue with handling of step height in colliding
4722d59 Updated Upstream (Paper)

EMC Changes:
1d0cc885 Updated Paper

Purpur Changes:
3776636 Implement TPSBar
258ae07 Updated Upstream (Paper)
c51e391 Add back --zero-commit
ef0b93d Rebuild patches
0ae637c Option for chests to open even with a solid block on top
ce4ab83 Phantom flames on swoop
5e2d697 Don't apply potion effects on load either
bbe5a58 Don't apply potion effect to wolves during worldgen
06c4f83 Get max health attribute even closer to vanilla
41f23a7 Updated Upstream (Tuinity)
787e35c Get max health equations for horse types closer to vanilla
aed0867 Fix CraftSound backwards compatibility
dfabf51 Start of the configurable base attributes
a1fa221 Updated Upstream (Paper)
0174fcd Configurable default wolf collar color (#116)
da48e0a [ci-skip] fix comment in last patch
65fde28 Add option for using milk to cure wolves
38efb4d Use a ThreadLocal SimpleDateFormat for CriterionProgress deserialization
4e6e1ff Revert "Fix concurrency issue with CriterionProgress deserialization"
55bde37 Fix concurrency issue with CriterionProgress deserialization
b4be9ab Small fixes to rabid wolves patch
5943978 Updated Upstream (Paper)
ac34692 Chance to spawn wolves as "rabid" (#114)
1b40f87 Updated Upstream (Paper)
69790ff Alphabetize in-game /plugins list

AirplaneLite Changes:
76810f1 Updated Upstream (Tuinity)
2020-12-13 17:18:57 +02:00

34 lines
1.7 KiB
Diff

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/net/minecraft/server/Entity.java b/src/main/java/net/minecraft/server/Entity.java
index d224b1d0e224853e825486559938aed2c56c3981..0bca08dc6ffd367de7cffab0433900d6bfe555cf 100644
--- a/src/main/java/net/minecraft/server/Entity.java
+++ b/src/main/java/net/minecraft/server/Entity.java
@@ -1290,6 +1290,8 @@ public abstract class Entity implements INamableTileEntity, ICommandListener, Ke
this.fallDistance = 0.0F;
} else if (d0 < 0.0D) {
this.fallDistance = (float) ((double) this.fallDistance - d0);
+ } else if (d0 > 0.0D && org.yatopiamc.yatopia.server.YatopiaConfig.fixFallDistance) { // Yatopia
+ this.fallDistance = 0.0F; // Yatopia
}
}
diff --git a/src/main/java/org/yatopiamc/yatopia/server/YatopiaConfig.java b/src/main/java/org/yatopiamc/yatopia/server/YatopiaConfig.java
index 0f3803757a81c7ecaad48637ede8a3dc95b93f13..003a024da8ab877895244ff9e4e4ff62288622ff 100644
--- a/src/main/java/org/yatopiamc/yatopia/server/YatopiaConfig.java
+++ b/src/main/java/org/yatopiamc/yatopia/server/YatopiaConfig.java
@@ -206,4 +206,9 @@ public class YatopiaConfig {
simplerVillagerBehavior = getBoolean("settings.villager.simplerVillagerBehavior", false);
villagersHideAtNight = getBoolean("settings.villager.villagersHideAtNight", false);
}
+
+ public static boolean fixFallDistance = false;
+ private static void fixFallDistance() {
+ fixFallDistance = getBoolean("settings.fixFallDistance", false);
+ }
}