Fixed typo in bounding box based ladder checks that caused potential infinite loops with entities in certian positions. Thanks Overmind for reporting it.

This commit is contained in:
Lex Manos 2013-09-24 22:46:18 -07:00
parent 70671858c2
commit dbd19b0cad

View file

@ -365,7 +365,7 @@ public class ForgeHooks
int mX = MathHelper.floor_double(bb.minX); int mX = MathHelper.floor_double(bb.minX);
int mY = MathHelper.floor_double(bb.minY); int mY = MathHelper.floor_double(bb.minY);
int mZ = MathHelper.floor_double(bb.minZ); int mZ = MathHelper.floor_double(bb.minZ);
for (int y2 = mY; y < bb.maxY; y2++) for (int y2 = mY; y2 < bb.maxY; y2++)
{ {
for (int x2 = mX; x2 < bb.maxX; x2++) for (int x2 = mX; x2 < bb.maxX; x2++)
{ {