mirror of
https://github.com/GTNewHorizons/Gadomancy.git
synced 2026-11-23 21:39:47 +00:00
- Fixxes and stuff
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user