Run Spotless, cleanup unused imports, add braces to one line for/if/etc.

This commit is contained in:
Hubry committed 2020-03-07 22:39:15 +01:00
1 parent 21d9d95611
commit 2152473edb
757 files changed
+14429 -12341

No files matched your search

@@ -1,12 +1,10 @@
/**
* This class was created by <Vazkii>. It's distributed as
* part of the Botania Mod. Get the Source Code in github:
/*
* This class is distributed as part of the Botania Mod.
* Get the Source Code in github:
* https://github.com/Vazkii/Botania
*
* Botania is Open Source and distributed under the
* Botania License: http://botaniamod.net/license.php
*
* File Created @ [Jul 15, 2015, 8:31:13 PM (GMT)]
*/
package vazkii.botania.common.block;
@@ -28,12 +26,14 @@ import net.minecraft.world.IBlockReader;
import net.minecraft.world.IWorldReader;
import net.minecraft.world.World;
import net.minecraft.world.server.ServerWorld;
import vazkii.botania.api.state.BotaniaStateProps;
import vazkii.botania.api.state.enums.LuminizerVariant;
import vazkii.botania.api.wand.IWandable;
import vazkii.botania.common.block.tile.TileLightRelay;
import javax.annotation.Nonnull;
import java.util.Random;
public class BlockLightRelay extends BlockMod implements IWandable {
@@ -71,11 +71,12 @@ public class BlockLightRelay extends BlockMod implements IWandable {
@Override
public void neighborChanged(BlockState state, World worldIn, BlockPos pos, Block blockIn, BlockPos fromPos, boolean isMoving) {
if(!worldIn.isRemote && variant == LuminizerVariant.TOGGLE) {
if(state.get(BotaniaStateProps.POWERED) && !worldIn.isBlockPowered(pos))
if (!worldIn.isRemote && variant == LuminizerVariant.TOGGLE) {
if (state.get(BotaniaStateProps.POWERED) && !worldIn.isBlockPowered(pos)) {
worldIn.setBlockState(pos, state.with(BotaniaStateProps.POWERED, false));
else if(!state.get(BotaniaStateProps.POWERED) && worldIn.isBlockPowered(pos))
} else if (!state.get(BotaniaStateProps.POWERED) && worldIn.isBlockPowered(pos)) {
worldIn.setBlockState(pos, state.with(BotaniaStateProps.POWERED, true));
}
}
}