summaryrefslogtreecommitdiffstats
path: root/nms-patches/TileEntityNote.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nms-patches/TileEntityNote.patch')
-rw-r--r--nms-patches/TileEntityNote.patch16
1 files changed, 0 insertions, 16 deletions
diff --git a/nms-patches/TileEntityNote.patch b/nms-patches/TileEntityNote.patch
deleted file mode 100644
index e0498c39..00000000
--- a/nms-patches/TileEntityNote.patch
+++ /dev/null
@@ -1,16 +0,0 @@
---- a/net/minecraft/server/TileEntityNote.java
-+++ b/net/minecraft/server/TileEntityNote.java
-@@ -70,7 +70,12 @@
- b0 = 9;
- }
-
-- world.playBlockAction(blockposition, Blocks.NOTEBLOCK, b0, this.note);
-+ // CraftBukkit start
-+ org.bukkit.event.block.NotePlayEvent event = org.bukkit.craftbukkit.event.CraftEventFactory.callNotePlayEvent(this.world, blockposition.getX(), blockposition.getY(), blockposition.getZ(), b0, this.note);
-+ if (!event.isCancelled()) {
-+ world.playBlockAction(blockposition, Blocks.NOTEBLOCK, event.getInstrument().getType(), event.getNote().getId());
-+ }
-+ // CraftBukkit end
- }
- }
- }