mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-24 19:25:15 +01:00
Add 'onlyiflit' setting to Kzed cave renderer
This commit is contained in:
parent
820bd3993e
commit
96a2978548
@ -7,9 +7,10 @@ import org.dynmap.utils.MapIterator;
|
|||||||
import org.dynmap.utils.MapIterator.BlockStep;
|
import org.dynmap.utils.MapIterator.BlockStep;
|
||||||
|
|
||||||
public class CaveTileRenderer extends DefaultTileRenderer {
|
public class CaveTileRenderer extends DefaultTileRenderer {
|
||||||
|
private boolean iflit;
|
||||||
public CaveTileRenderer(ConfigurationNode configuration) {
|
public CaveTileRenderer(ConfigurationNode configuration) {
|
||||||
super(configuration);
|
super(configuration);
|
||||||
|
iflit = configuration.getBoolean("onlyiflit", false);
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isNightAndDayEnabled() { return false; }
|
public boolean isNightAndDayEnabled() { return false; }
|
||||||
@ -63,6 +64,8 @@ public class CaveTileRenderer extends DefaultTileRenderer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (id == 0 && !air) {
|
if (id == 0 && !air) {
|
||||||
|
if(iflit && (mapiter.getBlockEmittedLight() == 0))
|
||||||
|
continue;
|
||||||
int cr, cg, cb;
|
int cr, cg, cb;
|
||||||
int mult = 256;
|
int mult = 256;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user