Fixed jump with Chisel netherrack blocks while Bibliocraft is installed

This commit is contained in:
LemADEC 2016-07-30 14:41:23 +02:00
parent ec50046b2e
commit 7687c43293

View file

@ -25,7 +25,11 @@ public class CompatBiblioCraft implements IBlockTransformer {
@Override
public boolean isApplicable(final Block block, final int metadata, final TileEntity tileEntity) {
return block != null && block.getClass().getCanonicalName().startsWith("jds.bibliocraft.");
if (block == null) {
return false;
}
String canonicalName = block.getClass().getCanonicalName();
return canonicalName != null && canonicalName.startsWith("jds.bibliocraft.");
}
@Override