mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-12-25 18:17:37 +01:00
Add more debug on block state exceptions
This commit is contained in:
parent
7df857e7f3
commit
931538279b
@ -276,6 +276,7 @@ public class DynmapPlugin
|
|||||||
lightAtten = bs.isOpaqueCube(EmptyBlockReader.INSTANCE, BlockPos.ZERO) ? 15 : (bs.propagatesSkylightDown(EmptyBlockReader.INSTANCE, BlockPos.ZERO) ? 0 : 1);
|
lightAtten = bs.isOpaqueCube(EmptyBlockReader.INSTANCE, BlockPos.ZERO) ? 15 : (bs.propagatesSkylightDown(EmptyBlockReader.INSTANCE, BlockPos.ZERO) ? 0 : 1);
|
||||||
} catch (Exception x) {
|
} catch (Exception x) {
|
||||||
Log.warning(String.format("Exception while checking lighting data for block state: %s[%s]", bn, statename));
|
Log.warning(String.format("Exception while checking lighting data for block state: %s[%s]", bn, statename));
|
||||||
|
Log.verboseinfo("Exception: " + x.toString());
|
||||||
}
|
}
|
||||||
//Log.info("statename=" + bn + "[" + statename + "], lightAtten=" + lightAtten);
|
//Log.info("statename=" + bn + "[" + statename + "], lightAtten=" + lightAtten);
|
||||||
// Fill in base attributes
|
// Fill in base attributes
|
||||||
|
@ -253,6 +253,7 @@ public class DynmapPlugin
|
|||||||
lightAtten = bs.isSolidRender(EmptyBlockGetter.INSTANCE, BlockPos.ZERO) ? 15 : (bs.propagatesSkylightDown(EmptyBlockGetter.INSTANCE, BlockPos.ZERO) ? 0 : 1);
|
lightAtten = bs.isSolidRender(EmptyBlockGetter.INSTANCE, BlockPos.ZERO) ? 15 : (bs.propagatesSkylightDown(EmptyBlockGetter.INSTANCE, BlockPos.ZERO) ? 0 : 1);
|
||||||
} catch (Exception x) {
|
} catch (Exception x) {
|
||||||
Log.warning(String.format("Exception while checking lighting data for block state: %s[%s]", bn, statename));
|
Log.warning(String.format("Exception while checking lighting data for block state: %s[%s]", bn, statename));
|
||||||
|
Log.verboseinfo("Exception: " + x.toString());
|
||||||
}
|
}
|
||||||
//Log.info("statename=" + bn + "[" + statename + "], lightAtten=" + lightAtten);
|
//Log.info("statename=" + bn + "[" + statename + "], lightAtten=" + lightAtten);
|
||||||
// Fill in base attributes
|
// Fill in base attributes
|
||||||
|
@ -253,6 +253,7 @@ public class DynmapPlugin
|
|||||||
lightAtten =bs.isSolidRender(EmptyBlockGetter.INSTANCE, BlockPos.ZERO) ? 15 : (bs.propagatesSkylightDown(EmptyBlockGetter.INSTANCE, BlockPos.ZERO) ? 0 : 1);
|
lightAtten =bs.isSolidRender(EmptyBlockGetter.INSTANCE, BlockPos.ZERO) ? 15 : (bs.propagatesSkylightDown(EmptyBlockGetter.INSTANCE, BlockPos.ZERO) ? 0 : 1);
|
||||||
} catch (Exception x) {
|
} catch (Exception x) {
|
||||||
Log.warning(String.format("Exception while checking lighting data for block state: %s[%s]", bn, statename));
|
Log.warning(String.format("Exception while checking lighting data for block state: %s[%s]", bn, statename));
|
||||||
|
Log.verboseinfo("Exception: " + x.toString());
|
||||||
}
|
}
|
||||||
//Log.info("statename=" + bn + "[" + statename + "], lightAtten=" + lightAtten);
|
//Log.info("statename=" + bn + "[" + statename + "], lightAtten=" + lightAtten);
|
||||||
// Fill in base attributes
|
// Fill in base attributes
|
||||||
|
Loading…
Reference in New Issue
Block a user