From c9d1e6d3ef9dbc4a4345339ad26a309e9c634276 Mon Sep 17 00:00:00 2001 From: Aeronica Date: Mon, 1 Jan 2024 21:11:36 -0600 Subject: [PATCH] Fix rear signal, so it works with redstone dust, buttons, lever, other redstone devices or a neighboring Music Block. --- src/main/java/aeronicamc/mods/mxtune/blocks/MusicBlock.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/aeronicamc/mods/mxtune/blocks/MusicBlock.java b/src/main/java/aeronicamc/mods/mxtune/blocks/MusicBlock.java index 7c7a32c4..4691cef2 100644 --- a/src/main/java/aeronicamc/mods/mxtune/blocks/MusicBlock.java +++ b/src/main/java/aeronicamc/mods/mxtune/blocks/MusicBlock.java @@ -263,7 +263,7 @@ public void neighborChanged(BlockState pState, World pLevel, BlockPos pPos, Bloc musicBlockEntity -> { // get redStone input from the rear side - boolean isSidePowered = pLevel.hasSignal(pPos.relative(pState.getValue(HORIZONTAL_FACING).getOpposite()), pState.getValue(HORIZONTAL_FACING)); + boolean isSidePowered = pLevel.hasSignal(pPos.relative(pState.getValue(HORIZONTAL_FACING).getOpposite()), pState.getValue(HORIZONTAL_FACING).getOpposite()); // Lever spam prevention. see use method above for more details. if (musicBlockEntity.notHeld()) {