mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-12 21:54:06 +01:00
13 lines
304 B
Diff
13 lines
304 B
Diff
@@ -29,6 +29,11 @@
|
|
}
|
|
|
|
public void setRecord(ItemStack itemstack) {
|
|
+ // CraftBukkit start - There can only be one
|
|
+ if (itemstack != null) {
|
|
+ itemstack.count = 1;
|
|
+ }
|
|
+ // CraftBukkit end
|
|
this.record = itemstack;
|
|
this.update();
|
|
}
|