Improved rendering logs
This commit is contained in:
parent
cd656104b8
commit
3a520339b7
1 changed files with 9 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue