Improved rendering logs

This commit is contained in:
Unknown 2019-01-30 00:12:58 +01:00 committed by unknown
parent cd656104b8
commit 3a520339b7

View file

@ -79,8 +79,8 @@ public class BakedModelCapacitor implements IBakedModel, IMyBakedModel {
if (extendedBlockState != null) {
final EnumDisabledInputOutput enumDisabledInputOutput = getEnumDisabledInputOutput(extendedBlockState, facing);
if (enumDisabledInputOutput == null) {
WarpDrive.logger.error(String.format("%s Invalid extended property for %s",
this, extendedBlockState));
WarpDrive.logger.error(String.format("%s Invalid extended property for %s\n%s",
this, extendedBlockState, formatDetails() ));
return getDefaultQuads(facing, rand);
}
final IBlockState blockStateToRender = extendedBlockState.getClean().withProperty(BlockCapacitor.CONFIG, enumDisabledInputOutput);
@ -163,4 +163,11 @@ public class BakedModelCapacitor implements IBakedModel, IMyBakedModel {
return bakedModel;
}
};
private String formatDetails() {
return String.format("resourceLocation %s\nbakedModelOriginal %s\nextendedBlockStateDefault %s]",
resourceLocation,
bakedModelOriginal,
extendedBlockStateDefault);
}
}