Fix invalid placeholder entity attributes (MC-150405) (#5718)

This commit is contained in:
Ben Staddon authored and LexManos committed 2019-08-28 19:22:56 -07:00
1 parent a5d0a86760
commit 05f4f5ec77
1 file changed
+9
@@ -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());