Skip to content

Commit

Permalink
Fixed compatibility with 1.7.9 for the Settings Panel.
Browse files Browse the repository at this point in the history
  • Loading branch information
tastybento committed Feb 25, 2015
1 parent f440179 commit 83089cf
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions src/com/wasteofplastic/askyblock/SettingsPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,20 @@ public class SettingsPanel {
private static List<IPItem> ip = new ArrayList<IPItem>();
private static Inventory newPanel;
static {
ip.add(new IPItem(Settings.allowAnvilUse, Material.ANVIL));
ip.add(new IPItem(Settings.allowArmorStandUse, Material.ARMOR_STAND));
ip.add(new IPItem(Settings.allowAnvilUse, Material.ANVIL));
Class<?> clazz;
try {
clazz = Class.forName("org.bukkit.entity.ArmorStand");
} catch (Exception e) {
clazz = null;
}
if (clazz != null) {
ip.add(new IPItem(Settings.allowArmorStandUse, Material.ARMOR_STAND));
}
ip.add(new IPItem(Settings.allowBeaconAccess, Material.BEACON));
ip.add(new IPItem(Settings.allowBedUse, Material.BED));
ip.add(new IPItem(Settings.allowBreakBlocks, Material.DIRT, "Break blocks"));
ip.add(new IPItem(Settings.allowBreeding, Material.CARROT, "Breeding"));
ip.add(new IPItem(Settings.allowBreeding, Material.CARROT_ITEM, "Breeding"));
ip.add(new IPItem(Settings.allowBrewing, Material.BREWING_STAND_ITEM, "Potion Brewing"));
ip.add(new IPItem(Settings.allowBucketUse, Material.BUCKET));
ip.add(new IPItem(Settings.allowChestAccess, Material.CHEST));
Expand Down

0 comments on commit 83089cf

Please sign in to comment.