From 185ce79a6803e04774f7d47fa4ec828b3d07b856 Mon Sep 17 00:00:00 2001 From: tterrag Date: Sun, 8 Sep 2019 02:05:01 -0400 Subject: [PATCH] Fix vanilla typo causing errors when client is missing entity attributes --- .../client/network/play/ClientPlayNetHandler.java.patch | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/patches/minecraft/net/minecraft/client/network/play/ClientPlayNetHandler.java.patch b/patches/minecraft/net/minecraft/client/network/play/ClientPlayNetHandler.java.patch index 8174f07b47..f63e8e767f 100644 --- a/patches/minecraft/net/minecraft/client/network/play/ClientPlayNetHandler.java.patch +++ b/patches/minecraft/net/minecraft/client/network/play/ClientPlayNetHandler.java.patch @@ -91,3 +91,12 @@ packetbuffer.release(); } +@@ -1909,7 +1924,7 @@ + for(SEntityPropertiesPacket.Snapshot sentitypropertiespacket$snapshot : p_147290_1_.func_149441_d()) { + IAttributeInstance iattributeinstance = abstractattributemap.func_111152_a(sentitypropertiespacket$snapshot.func_151409_a()); + if (iattributeinstance == null) { +- iattributeinstance = abstractattributemap.func_111150_b(new RangedAttribute((IAttribute)null, sentitypropertiespacket$snapshot.func_151409_a(), 0.0D, Double.MIN_NORMAL, Double.MAX_VALUE)); ++ iattributeinstance = abstractattributemap.func_111150_b(new RangedAttribute((IAttribute)null, sentitypropertiespacket$snapshot.func_151409_a(), 0.0D, Double.MIN_VALUE, Double.MAX_VALUE)); // FORGE: Fix vanilla typo, MIN_NORMAL -> MIN_VALUE + } + + iattributeinstance.func_111128_a(sentitypropertiespacket$snapshot.func_151410_b());