Fix biome rendering
This commit is contained in:
parent
b72cc2063a
commit
57ea6aefd6
5 changed files with 25 additions and 8 deletions
|
|
@ -330,9 +330,13 @@ public class IsoHDPerspective implements HDPerspective {
|
|||
}
|
||||
double mtend = Math.min(t_next_x, Math.min(t_next_y, t_next_z));
|
||||
while(mt < mtend) {
|
||||
if(model[modscale*modscale*my + modscale*mz + mx] > 0) {
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
if(model[modscale*modscale*my + modscale*mz + mx] > 0) {
|
||||
return false;
|
||||
}
|
||||
} catch (ArrayIndexOutOfBoundsException aioobx) { /* We're outside the model, so miss */
|
||||
return true;
|
||||
}
|
||||
/* If X step is next best */
|
||||
if((mt_next_x <= mt_next_y) && (mt_next_x <= mt_next_z)) {
|
||||
mx += x_inc;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue