Log warning for block states with lighting lookup error

This commit is contained in:
Mike Primm 2022-01-14 18:32:28 -06:00
parent 1f1b5ab09f
commit 7df857e7f3
3 changed files with 7 additions and 2 deletions

View file

@ -252,6 +252,7 @@ public class DynmapPlugin
try { // Workaround for mods with broken block state logic...
lightAtten =bs.isSolidRender(EmptyBlockGetter.INSTANCE, BlockPos.ZERO) ? 15 : (bs.propagatesSkylightDown(EmptyBlockGetter.INSTANCE, BlockPos.ZERO) ? 0 : 1);
} catch (Exception x) {
Log.warning(String.format("Exception while checking lighting data for block state: %s[%s]", bn, statename));
}
//Log.info("statename=" + bn + "[" + statename + "], lightAtten=" + lightAtten);
// Fill in base attributes