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:
parent
70671858c2
commit
dbd19b0cad
1 changed files with 1 additions and 1 deletions
|
@ -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++)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue