13
0
geforkt von Mirrors/Paper

[Bleeding] Made ItemStack constructors not default to an amount of 0. Fixes BUKKIT-610

By: Celtic Minstrel <celtic.minstrel.ca@some.place>
Dieser Commit ist enthalten in:
Bukkit/Spigot 2012-03-12 16:59:12 -04:00
Ursprung e3b0a0b98c
Commit 0635b1f496

Datei anzeigen

@ -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) {