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;