Pistons now respect world height a little better, for PR #286, will review Rotation event later.

This commit is contained in:
LexManos 2012-12-12 01:58:24 -08:00
parent 599591e883
commit dfd9844c13
1 changed files with 18 additions and 0 deletions

View File

@ -9,3 +9,21 @@
}
}
@@ -386,7 +386,7 @@
{
if (var8 < 13)
{
- if (var6 <= 0 || var6 >= 255)
+ if (var6 <= 0 || var6 >= par0World.getHeight() - 1)
{
return false;
}
@@ -436,7 +436,7 @@
if (var9 < 13)
{
- if (var7 <= 0 || var7 >= 255)
+ if (var7 <= 0 || var7 >= par1World.getHeight() - 1)
{
return false;
}