- Fixxes and stuff

This commit is contained in:
HellFirePvP committed 2016-04-20 14:33:49 +02:00
1 parent b815282dfb
commit ba53cd41ae
5 files changed
+46 -21

No files matched your search

@@ -92,6 +92,25 @@ public class BlockKnowledgeBook extends BlockContainer implements IBlockTranspar
world.markBlockForUpdate(x, y, z);
}
@Override
public boolean hasComparatorInputOverride() {
return true;
}
@Override
public int getComparatorInputOverride(World world, int x, int y, int z, int p_149736_5_) {
TileEntity te = world.getTileEntity(x, y, z);
if(te != null && te instanceof TileKnowledgeBook) {
if(((TileKnowledgeBook) te).isResearching()) {
if(((TileKnowledgeBook) te).hasCognitio()) {
return 15;
}
return 1;
}
}
return 0;
}
@Override
public boolean isOpaqueCube() {
return false;