v0.9.7:
- amount bugfix, bad damn typo xD
This commit is contained in:
parent
a5a777a5cd
commit
349d328a11
2 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
name: LimitedCreative
|
name: LimitedCreative
|
||||||
main: de.jaschastarke.minecraft.limitedcreative.Core
|
main: de.jaschastarke.minecraft.limitedcreative.Core
|
||||||
version: 0.9.6-beta
|
version: 0.9.7-beta
|
||||||
softdepend: [WorldGuard, WorldEdit, MultiInv]
|
softdepend: [WorldGuard, WorldEdit, MultiInv]
|
||||||
dev-url: http://dev.bukkit.org/server-mods/limited-creative/
|
dev-url: http://dev.bukkit.org/server-mods/limited-creative/
|
||||||
commands:
|
commands:
|
||||||
|
|
|
@ -89,7 +89,7 @@ abstract public class InvConfStorage extends PlayerInventoryStorage {
|
||||||
ConfigurationSection sect = (ConfigurationSection) is;
|
ConfigurationSection sect = (ConfigurationSection) is;
|
||||||
Material type = Material.getMaterial(sect.getString("type"));
|
Material type = Material.getMaterial(sect.getString("type"));
|
||||||
short damage = new Integer(sect.getInt("damage", 0)).shortValue();
|
short damage = new Integer(sect.getInt("damage", 0)).shortValue();
|
||||||
int amount = sect.getInt("amaount", 1);
|
int amount = sect.getInt("amount", 1);
|
||||||
|
|
||||||
ItemStack result = new ItemStack(type, amount, damage);
|
ItemStack result = new ItemStack(type, amount, damage);
|
||||||
if (sect.contains("enchantments")) {
|
if (sect.contains("enchantments")) {
|
||||||
|
|
Loading…
Reference in a new issue