New luminizer docs

This commit is contained in:
Vasco Lavos committed 2016-10-01 20:20:58 +01:00
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))