Skip to content

Commit 529d8a6

Browse files
authored
Merge pull request IntelligenceModding#605 from zyxkad/603-patch
fix playNote will not trigger alley
2 parents 5dc15af + bd047e5 commit 529d8a6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/de/srendi/advancedperipherals/common/addons/computercraft/integrations/NoteBlockIntegration.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import net.minecraft.world.level.Level;
88
import net.minecraft.world.level.block.NoteBlock;
99
import net.minecraft.world.level.block.state.BlockState;
10+
import net.minecraft.world.level.gameevent.GameEvent;
1011
import org.jetbrains.annotations.NotNull;
1112

1213
public class NoteBlockIntegration extends BlockIntegrationPeripheral<NoteBlock> {
@@ -50,6 +51,7 @@ public final int getNote() {
5051
public final void playNote() {
5152
if (world.isEmptyBlock(pos.above())) {
5253
world.blockEvent(pos, getBlock(), 0, 0);
54+
world.gameEvent(null, GameEvent.NOTE_BLOCK_PLAY, pos);
5355
}
5456
}
5557
}

0 commit comments

Comments
 (0)