Originally Posted by Dr.Code
Well you are only talking about 6 lines of code. Brute Force!!!
sysout every variable in the method between every line of code in the method.
There is no way we can do anything for you without enough code to compile and run that shows the problem.
What about this:
int var0 = (int) Math.floor((par1 / 32));
int var1 = (int) Math.floor((par2 / 32));
Have you adjusted these lines? If not do it.
Then post the code after adjustments so we are all looking at the same code.
Tile var2 = world[var0][var1];
Nothing allows any of us to test what this does....
TileType var3 = var2.getType();
Nothing allows any of us to test what this does.... Plus this could be wrong from the line above it....
From those two lines through the remainder of the method, noting can be correct or assumed correct until the above lines have been tested and verified.