Fix snow rendering on flat map
This commit is contained in:
parent
a284c745fa
commit
61af71dbc6
1 changed files with 8 additions and 3 deletions
|
|
@ -149,12 +149,17 @@ public class FlatMap extends MapType {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
int my = mapiter.getHighestBlockYAt() - 1;
|
int my = mapiter.getHighestBlockYAt();
|
||||||
if(my < 0) /* If hole to bottom, all air */
|
|
||||||
continue;
|
|
||||||
if(my > maximumHeight) my = maximumHeight;
|
if(my > maximumHeight) my = maximumHeight;
|
||||||
mapiter.setY(my);
|
mapiter.setY(my);
|
||||||
blockType = mapiter.getBlockTypeID();
|
blockType = mapiter.getBlockTypeID();
|
||||||
|
if(blockType == 0) { /* If air, go down one - fixes ice */
|
||||||
|
my--;
|
||||||
|
if(my < 0)
|
||||||
|
continue;
|
||||||
|
mapiter.setY(my);
|
||||||
|
blockType = mapiter.getBlockTypeID();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
int data = 0;
|
int data = 0;
|
||||||
Color[] colors = colorScheme.colors[blockType];
|
Color[] colors = colorScheme.colors[blockType];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue