Take account with blocks on y = 256.

This commit is contained in:
Jos van 't Hof
2012-06-05 08:36:19 +02:00
parent 9baa6fa468
commit ee6b8a6c2b

View File

@@ -125,8 +125,9 @@ public class RandomSpawn extends JavaPlugin{
}
if(y == 128) return -1;
}else{
y = 256;
y = 257;
while(y >= 0 && blockid == 0){
y--;
blockid = world.getBlockTypeIdAt(x, y, z);
}
if(y == 0) return -1;