mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-17 05:03:55 -07:00
[Bleeding] Made ItemStack constructors not default to an amount of 0. Fixes BUKKIT-610
By: Celtic Minstrel <celtic.minstrel.ca@some.place>
This commit is contained in:
@@ -20,11 +20,11 @@ public class ItemStack implements Cloneable, ConfigurationSerializable {
|
||||
private Map<Enchantment, Integer> enchantments = new HashMap<Enchantment, Integer>();
|
||||
|
||||
public ItemStack(final int type) {
|
||||
this(type, 0);
|
||||
this(type, 1);
|
||||
}
|
||||
|
||||
public ItemStack(final Material type) {
|
||||
this(type, 0);
|
||||
this(type, 1);
|
||||
}
|
||||
|
||||
public ItemStack(final int type, final int amount) {
|
||||
|
Reference in New Issue
Block a user