mirror of
https://github.com/GTNewHorizons/Chisel.git
synced 2026-11-11 15:57:31 +00:00
Stop the mod tab crashing
This commit is contained in:
1 parent
b83f3080ed
commit
8dfe1df73d
1 file changed
+5
-6
@@ -52,13 +52,12 @@ public class ChiselTabs {
|
||||
tabOtherChiselBlocks.setTabIconItemStack(new ItemStack(ChiselBlocks.jackolantern[0]));
|
||||
|
||||
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 {
|
||||
//This seems to be crashing due to Arcane blocks still being null when the tab is added
|
||||
//if (Features.ARCANE.enabled()) {
|
||||
// tabModdedChiselBlocks.setTabIconItemStack(new ItemStack(ChiselBlocks.arcane, 1, 1));
|
||||
//} else {
|
||||
tabModdedChiselBlocks.setTabIconItemStack(new ItemStack(ChiselBlocks.voidstone));
|
||||
}
|
||||
//}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user