From d1071fd0f8544b4cb6024cb71d785eb9bbbf490f Mon Sep 17 00:00:00 2001 From: LexManos Date: Sat, 28 Jun 2025 22:30:12 -0700 Subject: [PATCH] Add back magic number to make mixin happy. --- .../minecraft/world/inventory/HorseInventoryMenu.java.patch | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/patches/minecraft/net/minecraft/world/inventory/HorseInventoryMenu.java.patch b/patches/minecraft/net/minecraft/world/inventory/HorseInventoryMenu.java.patch index cd66fc6bbe..84fca970d6 100644 --- a/patches/minecraft/net/minecraft/world/inventory/HorseInventoryMenu.java.patch +++ b/patches/minecraft/net/minecraft/world/inventory/HorseInventoryMenu.java.patch @@ -1,10 +1,12 @@ --- a/net/minecraft/world/inventory/HorseInventoryMenu.java +++ b/net/minecraft/world/inventory/HorseInventoryMenu.java -@@ -62,7 +_,9 @@ +@@ -62,7 +_,11 @@ } public boolean m_6875_(Player p_39661_) { - return !this.f_39654_.m_149511_(this.f_39653_) && this.f_39653_.m_6542_(p_39661_) && this.f_39654_.m_6084_() && this.f_39654_.m_20270_(p_39661_) < 8.0F; ++ // Make pehkui's mixin happy so we stop getting crash reports. It requires the magic float 8.0F ++ float magic_number = 8.0F; + // Default reach is 3 vanilla uses 8 here so add 5 padding + double reach = p_39661_.m_21133_(net.minecraftforge.common.ForgeMod.ENTITY_REACH.get()) + 5; + return !this.f_39654_.m_149511_(this.f_39653_) && this.f_39653_.m_6542_(p_39661_) && this.f_39654_.m_6084_() && this.f_39654_.m_20270_(p_39661_) < reach;