mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-20 12:19:47 +00:00
Fix #254 Mod Modules are not disabled if the mod is disabled
This commit is contained in:
1 parent
2eca542f87
commit
8a2f686264
17 files changed
+80
-108
No files matched your search
@@ -71,15 +71,12 @@ public class ModuleFlowers extends Module {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void preInit() {
|
||||
MinecraftForge.EVENT_BUS.register(this);
|
||||
public void registerItemsAndBlocks() {
|
||||
AlleleManager.alleleRegistry.registerAllele(ModuleFlowers.alleleEffectNone);
|
||||
EnumFlowerColor.setupMutations();
|
||||
FlowerDefinition.preInitFlowers();
|
||||
|
||||
/* BACKPACK*/
|
||||
IBackpackInterface backpackInterface = BackpackManager.backpackInterface;
|
||||
|
||||
IBackpackInterface backpackInterface = BackpackManager.backpackInterface;
|
||||
if (ForestryAPI.enabledPlugins.contains("forestry.storage")) {
|
||||
Predicate<ItemStack> filter = BackpackManager.backpackInterface.createNaturalistBackpackFilter("rootFlowers");
|
||||
BackpackDefinition definition = new BackpackDefinition(new Color(0xf6e83e), Color.WHITE, filter);
|
||||
@@ -90,7 +87,7 @@ public class ModuleFlowers extends Module {
|
||||
} else {
|
||||
botanistBackpack = null;
|
||||
}
|
||||
|
||||
|
||||
/* ITEMS */
|
||||
flower = new BlockFlower();
|
||||
flowerItem = new ItemFlowerGE("itemFlower", EnumFlowerStage.FLOWER, "");
|
||||
@@ -105,6 +102,11 @@ public class ModuleFlowers extends Module {
|
||||
BinnieCore.getBinnieProxy().registerTileEntity(TileEntityFlower.class, "botany.tile.flower", null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void preInit() {
|
||||
MinecraftForge.EVENT_BUS.register(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void init() {
|
||||
EnumFlowerColor.initColours();
|
||||
|
||||
Reference in new issue
Block a user