summaryrefslogtreecommitdiffstats
path: root/nms-patches/BlockJukeBox.patch
diff options
context:
space:
mode:
Diffstat (limited to 'nms-patches/BlockJukeBox.patch')
-rw-r--r--nms-patches/BlockJukeBox.patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/nms-patches/BlockJukeBox.patch b/nms-patches/BlockJukeBox.patch
index 080ba7ef..b279f101 100644
--- a/nms-patches/BlockJukeBox.patch
+++ b/nms-patches/BlockJukeBox.patch
@@ -1,9 +1,9 @@
--- a/net/minecraft/server/BlockJukeBox.java
+++ b/net/minecraft/server/BlockJukeBox.java
-@@ -136,6 +136,11 @@
+@@ -140,6 +140,11 @@
}
- public void setRecord(ItemStack itemstack) {
+ public void setRecord(@Nullable ItemStack itemstack) {
+ // CraftBukkit start - There can only be one
+ if (itemstack != null) {
+ itemstack.count = 1;