[Bleeding] Made ItemStack constructors not default to an amount of 0. Fixes BUKKIT-610
This commit is contained in:
parent
8b67cad4cc
commit
e10a43a410
@ -20,11 +20,11 @@ public class ItemStack implements Cloneable, ConfigurationSerializable {
|
|||||||
private Map<Enchantment, Integer> enchantments = new HashMap<Enchantment, Integer>();
|
private Map<Enchantment, Integer> enchantments = new HashMap<Enchantment, Integer>();
|
||||||
|
|
||||||
public ItemStack(final int type) {
|
public ItemStack(final int type) {
|
||||||
this(type, 0);
|
this(type, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
public ItemStack(final Material type) {
|
public ItemStack(final Material type) {
|
||||||
this(type, 0);
|
this(type, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
public ItemStack(final int type, final int amount) {
|
public ItemStack(final int type, final int amount) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user