mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-22 13:09:42 +00:00
New luminizer docs
This commit is contained in:
1 parent
a26436e295
commit
6c3ff3487e
4 files changed
+23
-6
No files matched your search
@@ -130,7 +130,7 @@ public class BlockLightRelay extends BlockMod implements IWandable, ILexiconable
|
||||
|
||||
@Override
|
||||
public void neighborChanged(IBlockState state, World worldIn, BlockPos pos, Block blockIn) {
|
||||
if(!worldIn.isRemote) {
|
||||
if(!worldIn.isRemote && state.getValue(BotaniaStateProps.LUMINIZER_VARIANT) == LuminizerVariant.TOGGLE) {
|
||||
if(state.getValue(BotaniaStateProps.POWERED) && !worldIn.isBlockPowered(pos))
|
||||
worldIn.setBlockState(pos, state.withProperty(BotaniaStateProps.POWERED, false));
|
||||
else if(!state.getValue(BotaniaStateProps.POWERED) && worldIn.isBlockPowered(pos))
|
||||
|
||||
Reference in new issue
Block a user