mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-28 13:15:30 +01:00
Fix snow rendering on flat map
This commit is contained in:
parent
09e1ebc972
commit
840854aef0
@ -149,12 +149,17 @@ public class FlatMap extends MapType {
|
||||
}
|
||||
}
|
||||
else {
|
||||
int my = mapiter.getHighestBlockYAt() - 1;
|
||||
if(my < 0) /* If hole to bottom, all air */
|
||||
continue;
|
||||
int my = mapiter.getHighestBlockYAt();
|
||||
if(my > maximumHeight) my = maximumHeight;
|
||||
mapiter.setY(my);
|
||||
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;
|
||||
Color[] colors = colorScheme.colors[blockType];
|
||||
|
Loading…
Reference in New Issue
Block a user