Skip to content

Commit

Permalink
Fix rear signal, so it works with redstone dust, buttons, lever, othe…
Browse files Browse the repository at this point in the history
…r redstone devices or a neighboring Music Block.
  • Loading branch information
Aeronica committed Jan 2, 2024
1 parent 7eb0612 commit c9d1e6d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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())
{
Expand Down

0 comments on commit c9d1e6d

Please sign in to comment.