From 96a297854835d6fe587e265e8cc425205bf1868e Mon Sep 17 00:00:00 2001 From: Mike Primm Date: Thu, 13 Oct 2011 05:05:43 +0800 Subject: [PATCH] Add 'onlyiflit' setting to Kzed cave renderer --- src/main/java/org/dynmap/kzedmap/CaveTileRenderer.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/dynmap/kzedmap/CaveTileRenderer.java b/src/main/java/org/dynmap/kzedmap/CaveTileRenderer.java index 70f17240..df002cd6 100644 --- a/src/main/java/org/dynmap/kzedmap/CaveTileRenderer.java +++ b/src/main/java/org/dynmap/kzedmap/CaveTileRenderer.java @@ -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;