Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
SpaceWalkerRS committed Sep 3, 2020
1 parent fe77277 commit 0eb118c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ public int getStrongRedstonePower(BlockState state, BlockView view, BlockPos pos
public void onBlockAdded(BlockState state, World world, BlockPos pos, BlockState oldState, boolean notify) {
if (REDSTONE_BLOCK.get(STRONG_POWER) > 0) {
for (Direction direction : Direction.values()) {
BlockPos neighborPos = pos.offset(direction);
world.updateNeighborsExcept(neighborPos, (RedstoneBlock)(Object)this, direction.getOpposite());
world.updateNeighborsExcept(pos.offset(direction), (RedstoneBlock)(Object)this, direction.getOpposite());
}
}
}
Expand All @@ -46,8 +45,7 @@ public void onStateReplaced(BlockState state, World world, BlockPos pos, BlockSt
if (!state.isOf(newState.getBlock())) {
if (REDSTONE_BLOCK.get(STRONG_POWER) > 0) {
for (Direction direction : Direction.values()) {
BlockPos neighborPos = pos.offset(direction);
world.updateNeighborsExcept(neighborPos, (RedstoneBlock)(Object)this, direction.getOpposite());
world.updateNeighborsExcept(pos.offset(direction), (RedstoneBlock)(Object)this, direction.getOpposite());
}
}
}
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/redstonetweaks/packet/SettingPacket.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package redstonetweaks.packet;

import static redstonetweaks.setting.SettingsManager.SETTINGS;
import static redstonetweaks.setting.SettingsManager.SETTINGS_PACKS;
import static redstonetweaks.setting.SettingsManager.*;

import net.minecraft.client.MinecraftClient;
import net.minecraft.network.PacketByteBuf;
Expand Down

0 comments on commit 0eb118c

Please sign in to comment.