mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-14 14:25:21 +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;
|
||||
|
||||
public class CaveTileRenderer extends DefaultTileRenderer {
|
||||
|
||||
private boolean iflit;
|
||||
public CaveTileRenderer(ConfigurationNode configuration) {
|
||||
super(configuration);
|
||||
iflit = configuration.getBoolean("onlyiflit", false);
|
||||
}
|
||||
|
||||
public boolean isNightAndDayEnabled() { return false; }
|
||||
@ -63,6 +64,8 @@ public class CaveTileRenderer extends DefaultTileRenderer {
|
||||
}
|
||||
|
||||
if (id == 0 && !air) {
|
||||
if(iflit && (mapiter.getBlockEmittedLight() == 0))
|
||||
continue;
|
||||
int cr, cg, cb;
|
||||
int mult = 256;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user