mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-27 23:45:57 +00:00
Detector Luminizer.
This commit is contained in:
1 parent
8ee4ee14be
commit
c4df9709ed
7 files changed
+91
-14
No files matched your search
@@ -179,6 +179,12 @@ public class TileLightRelay extends TileMod implements IWandBindable {
|
||||
if(tile != null && tile instanceof TileLightRelay) {
|
||||
worldObj.playSoundAtEntity(this, "random.orb", 0.2F, (float) Math.random() * 0.3F + 0.7F);
|
||||
|
||||
int meta = worldObj.getBlockMetadata(x, y, z);
|
||||
if(meta > 0) {
|
||||
worldObj.setBlockMetadataWithNotify(x, y, z, meta | 8, 1 | 2);
|
||||
worldObj.scheduleBlockUpdate(x, y, z, tile.getBlockType(), tile.getBlockType().tickRate(worldObj));
|
||||
}
|
||||
|
||||
ChunkCoordinates bind = ((TileLightRelay) tile).getBinding();
|
||||
if(bind != null) {
|
||||
setExit(bind.posX, bind.posY, bind.posZ);
|
||||
|
||||
Reference in new issue
Block a user