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.patch8
1 files changed, 4 insertions, 4 deletions
diff --git a/nms-patches/BlockJukeBox.patch b/nms-patches/BlockJukeBox.patch
index ac548cae..477d255e 100644
--- a/nms-patches/BlockJukeBox.patch
+++ b/nms-patches/BlockJukeBox.patch
@@ -1,12 +1,12 @@
--- a/net/minecraft/server/BlockJukeBox.java
+++ b/net/minecraft/server/BlockJukeBox.java
-@@ -144,6 +144,11 @@
+@@ -143,6 +143,11 @@
}
- public void setRecord(@Nullable ItemStack itemstack) {
+ public void setRecord(ItemStack itemstack) {
+ // CraftBukkit start - There can only be one
-+ if (itemstack != null) {
-+ itemstack.count = 1;
++ if (!itemstack.isEmpty()) {
++ itemstack.setCount(1);
+ }
+ // CraftBukkit end
this.record = itemstack;