diff options
| author | Foghrye4 <foghrye4@gmail.com> | 2017-04-05 20:41:13 +0300 |
|---|---|---|
| committer | Foghrye4 <foghrye4@gmail.com> | 2017-04-05 20:41:13 +0300 |
| commit | 5b9935f737c226847e668bde0185adbc6a5a8b7b (patch) | |
| tree | 980cdbadd8635bcd48aa67966c7cceef4677ca64 /ihl/enviroment/LightBulbBlock.java | |
| parent | cd9b5adda974ad9a5e5732fe645571907313b38d (diff) | |
some experiments
Diffstat (limited to 'ihl/enviroment/LightBulbBlock.java')
| -rw-r--r-- | ihl/enviroment/LightBulbBlock.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ihl/enviroment/LightBulbBlock.java b/ihl/enviroment/LightBulbBlock.java index 77ee8f8..720ca4e 100644 --- a/ihl/enviroment/LightBulbBlock.java +++ b/ihl/enviroment/LightBulbBlock.java @@ -25,6 +25,7 @@ public class LightBulbBlock extends Block implements ITileEntityProvider { this.setResistance(0.5F);
this.setCreativeTab(IHLCreativeTab.tab);
this.setBlockTextureName("glass");
+ this.setLightOpacity(16);
}
@Override
@@ -108,11 +109,11 @@ public class LightBulbBlock extends Block implements ITileEntityProvider { }
public int getLightValue(IBlockAccess world, int x, int y, int z) {
- TileEntity te = world.getTileEntity(x, y, z);
+/* TileEntity te = world.getTileEntity(x, y, z);
if (te != null && te instanceof LightBulbTileEntity) {
LightBulbTileEntity ate = (LightBulbTileEntity) te;
return ate.getActive() ? 15 : 0;
- }
+ }*/
return 0;
}
}
|
