PaperMC/nms-patches/BlockJukeBox.patch

15 lines
441 B
Diff
Raw Normal View History

2015-05-25 20:37:24 +10:00
--- a/net/minecraft/server/BlockJukeBox.java
+++ b/net/minecraft/server/BlockJukeBox.java
2016-11-17 12:41:03 +11:00
@@ -143,6 +143,11 @@
2015-02-26 22:41:06 +00:00
}
2016-11-17 12:41:03 +11:00
public void setRecord(ItemStack itemstack) {
2015-02-26 22:41:06 +00:00
+ // CraftBukkit start - There can only be one
2016-11-17 12:41:03 +11:00
+ if (!itemstack.isEmpty()) {
+ itemstack.setCount(1);
2015-02-26 22:41:06 +00:00
+ }
+ // CraftBukkit end
this.record = itemstack;
this.update();
}