From 05f4f5ec775fbba7cf5c0421041f417dd4c70a36 Mon Sep 17 00:00:00 2001 From: Ben Staddon Date: Thu, 29 Aug 2019 03:22:56 +0100 Subject: [PATCH] Fix invalid placeholder entity attributes (MC-150405) (#5718) --- .../client/network/NetHandlerPlayClient.java.patch | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/patches/minecraft/net/minecraft/client/network/NetHandlerPlayClient.java.patch b/patches/minecraft/net/minecraft/client/network/NetHandlerPlayClient.java.patch index 36e36090a8..b3e4e764c5 100644 --- a/patches/minecraft/net/minecraft/client/network/NetHandlerPlayClient.java.patch +++ b/patches/minecraft/net/minecraft/client/network/NetHandlerPlayClient.java.patch @@ -99,3 +99,12 @@ packetbuffer.release(); } } +@@ -2087,7 +2099,7 @@ + + if (iattributeinstance == null) + { +- iattributeinstance = abstractattributemap.func_111150_b(new RangedAttribute((IAttribute)null, spacketentityproperties$snapshot.func_151409_a(), 0.0D, 2.2250738585072014E-308D, Double.MAX_VALUE)); ++ iattributeinstance = abstractattributemap.func_111150_b(new RangedAttribute((IAttribute)null, spacketentityproperties$snapshot.func_151409_a(), 0.0D, -Double.MAX_VALUE, Double.MAX_VALUE)); // Forge: fix invalid value range (MC-150405) + } + + iattributeinstance.func_111128_a(spacketentityproperties$snapshot.func_151410_b());