From b7b247f92ef21b0e6cae18a173a428640a57610e Mon Sep 17 00:00:00 2001 From: Jascha Starke Date: Wed, 18 Jan 2012 08:53:21 +0100 Subject: [PATCH] Fixed 1.0 fallback compatibility for Armory. whooops ;) --- .../limitedcreative/serialize/Armor.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/LimitedCreative/src/de/jaschastarke/minecraft/limitedcreative/serialize/Armor.java b/LimitedCreative/src/de/jaschastarke/minecraft/limitedcreative/serialize/Armor.java index 971ea02..3b1b49d 100644 --- a/LimitedCreative/src/de/jaschastarke/minecraft/limitedcreative/serialize/Armor.java +++ b/LimitedCreative/src/de/jaschastarke/minecraft/limitedcreative/serialize/Armor.java @@ -12,34 +12,34 @@ public class Armor implements Storeable { @Override public void store(ConfigurationSection section) { if (inv.getHelmet() != null && inv.getHelmet().getTypeId() != 0) - section.set("helmet", inv.getHelmet()); + Items.sectionSetItem(section, "helmet", inv.getHelmet()); if (inv.getChestplate() != null && inv.getChestplate().getTypeId() != 0) - section.set("chestplate", inv.getChestplate()); + Items.sectionSetItem(section, "chestplate", inv.getChestplate()); if (inv.getLeggings() != null && inv.getLeggings().getTypeId() != 0) - section.set("leggins", inv.getLeggings()); + Items.sectionSetItem(section, "leggins", inv.getLeggings()); if (inv.getBoots() != null && inv.getBoots().getTypeId() != 0) - section.set("boots", inv.getBoots()); + Items.sectionSetItem(section, "boots", inv.getBoots()); } @Override public void restore(ConfigurationSection section) { if (section.contains("helmet")) - inv.setHelmet(section.getItemStack("helmet")); + inv.setHelmet(Items.sectionGetItem(section, "helmet")); else inv.setHelmet(null); if (section.contains("chestplate")) - inv.setChestplate(section.getItemStack("chestplate")); + inv.setChestplate(Items.sectionGetItem(section, "chestplate")); else inv.setChestplate(null); if (section.contains("leggins")) - inv.setLeggings(section.getItemStack("leggins")); + inv.setLeggings(Items.sectionGetItem(section, "leggins")); else inv.setLeggings(null); if (section.contains("boots")) - inv.setBoots(section.getItemStack("boots")); + inv.setBoots(Items.sectionGetItem(section, "boots")); else inv.setBoots(null); }