diff options
author | md_5 <git@md-5.net> | 2016-11-17 12:41:03 +1100 |
---|---|---|
committer | md_5 <git@md-5.net> | 2016-11-17 12:41:03 +1100 |
commit | c25ddf063a808e3adb749e22017661f403c5fb7e (patch) | |
tree | b2efcff512be12fd3e38cf8c36386148ce6ab4ae /nms-patches/BlockJukeBox.patch | |
parent | 51263e97187a84338f89698eef187284055a682a (diff) | |
download | craftbukkit-c25ddf063a808e3adb749e22017661f403c5fb7e.tar craftbukkit-c25ddf063a808e3adb749e22017661f403c5fb7e.tar.gz craftbukkit-c25ddf063a808e3adb749e22017661f403c5fb7e.tar.lz craftbukkit-c25ddf063a808e3adb749e22017661f403c5fb7e.tar.xz craftbukkit-c25ddf063a808e3adb749e22017661f403c5fb7e.zip |
Update to Minecraft 1.11
Diffstat (limited to 'nms-patches/BlockJukeBox.patch')
-rw-r--r-- | nms-patches/BlockJukeBox.patch | 8 |
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; |