Undo removal of compat blocks

This commit is contained in:
tterrag1098 committed 2015-08-04 00:08:26 -04:00
1 parent acdf5290f9
commit ab3bd2ad9a
2 files changed
+349 -35

No files matched your search

@@ -58,18 +58,19 @@ public class ChiselTabs {
}
}
private static boolean atLeastOneModIsLoaded = false;
public static final CustomCreativeTab tabChisel = new CustomCreativeTab("tabChisel", false);
public static final CustomCreativeTab tabStoneChiselBlocks = new CustomCreativeTab("tabStoneChiselBlocks", true);
public static final CustomCreativeTab tabWoodChiselBlocks = new CustomCreativeTab("tabWoodChiselBlocks", true);
public static final CustomCreativeTab tabMetalChiselBlocks = new CustomCreativeTab("tabMetalChiselBlocks", true);
public static final CustomCreativeTab tabOtherChiselBlocks = new CustomCreativeTab("tabOtherChiselBlocks", true);
public static final CustomCreativeTab tabModdedChiselBlocks = new CustomCreativeTab("tabModdedChiselBlocks", true);
public static final CustomCreativeTab tabStairChiselBlocks = new CustomCreativeTab("tabStairChiselBlocks", true);
// this serves mostly just to load the static initializers
public static void preInit() {
atLeastOneModIsLoaded = Features.oneModdedFeatureLoaded();
}
public static void postInit() {
@@ -99,5 +100,17 @@ public class ChiselTabs {
else
tabStairChiselBlocks.setTabIconItemStack(new ItemStack(Blocks.nether_brick_stairs));
if (atLeastOneModIsLoaded) {
if (Features.ARCANE.enabled()) {
tabModdedChiselBlocks.setTabIconItemStack(new ItemStack(ChiselBlocks.arcane));
} else if (Features.BLOOD_RUNE.enabled()) {
tabModdedChiselBlocks.setTabIconItemStack(new ItemStack(ChiselBlocks.bloodRune));
} else {
if (ChiselBlocks.voidstone != null)
tabModdedChiselBlocks.setTabIconItemStack(new ItemStack(ChiselBlocks.voidstone));
else
tabModdedChiselBlocks.setTabIconItemStack(new ItemStack(Blocks.obsidian));
}
}
}
}