mirror of
https://github.com/webbukkit/dynmap.git
synced 2025-01-12 19:00:44 +01:00
Added data value colored blocks to flat map
This commit is contained in:
parent
491e88f745
commit
fe93f64273
@ -81,7 +81,15 @@ public class FlatMap extends MapType {
|
|||||||
int mz = y + t.y * t.size;
|
int mz = y + t.y * t.size;
|
||||||
int my = w.getHighestBlockYAt(mx, mz) - 1;
|
int my = w.getHighestBlockYAt(mx, mz) - 1;
|
||||||
int blockType = w.getBlockTypeIdAt(mx, my, mz);
|
int blockType = w.getBlockTypeIdAt(mx, my, mz);
|
||||||
Color[] colors = colorScheme.colors[blockType];
|
byte data = 0;
|
||||||
|
if(colorScheme.datacolors[blockType] != null) { /* If data colored */
|
||||||
|
data = w.getBlockAt(mx, my, mz).getData();
|
||||||
|
}
|
||||||
|
Color[] colors;
|
||||||
|
if(data != 0)
|
||||||
|
colors = colorScheme.datacolors[blockType][data];
|
||||||
|
else
|
||||||
|
colors = colorScheme.colors[blockType];
|
||||||
if (colors == null)
|
if (colors == null)
|
||||||
continue;
|
continue;
|
||||||
Color c = colors[0];
|
Color c = colors[0];
|
||||||
|
Loading…
Reference in New Issue
Block a user