mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-24 03:25:15 +01:00
[Bleeding] Made ItemStack constructors not default to an amount of 0. Fixes BUKKIT-610
This commit is contained in:
parent
76cc488402
commit
83265005f6
@ -30,11 +30,11 @@ public class CraftItemStack extends ItemStack {
|
|||||||
|
|
||||||
/* 'Overwritten' constructors from ItemStack, yay for Java sucking */
|
/* 'Overwritten' constructors from ItemStack, yay for Java sucking */
|
||||||
public CraftItemStack(final int type) {
|
public CraftItemStack(final int type) {
|
||||||
this(type, 0);
|
this(type, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
public CraftItemStack(final Material type) {
|
public CraftItemStack(final Material type) {
|
||||||
this(type, 0);
|
this(type, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
public CraftItemStack(final int type, final int amount) {
|
public CraftItemStack(final int type, final int amount) {
|
||||||
|
Loading…
Reference in New Issue
Block a user