mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-22 12:59:44 +00:00
Fix #283 Crash from Disabling Arboriculture
This commit is contained in:
1 parent
d7dc7a8c69
commit
b60b5c1251
2 files changed
+11
-1
No files matched your search
@@ -10,6 +10,7 @@
|
||||
******************************************************************************/
|
||||
package forestry.plugins;
|
||||
|
||||
import java.util.EnumSet;
|
||||
import java.util.Locale;
|
||||
|
||||
import net.minecraft.block.material.Material;
|
||||
@@ -88,6 +89,13 @@ public class PluginLepidopterology extends ForestryPlugin {
|
||||
createAlleles();
|
||||
}
|
||||
|
||||
@Override
|
||||
public EnumSet<PluginManager.Module> getDependancies() {
|
||||
EnumSet<PluginManager.Module> deps = super.getDependancies();
|
||||
deps.add(PluginManager.Module.ARBORICULTURE);
|
||||
return deps;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void doInit() {
|
||||
config = new Configuration();
|
||||
|
||||
@@ -354,7 +354,9 @@ public class PluginStorage extends ForestryPlugin implements IOreDictionaryHandl
|
||||
foresterItems.add(new ItemStack(Items.pumpkin_seeds));
|
||||
foresterItems.add(new ItemStack(Items.melon_seeds));
|
||||
foresterItems.add(new ItemStack(Items.wheat));
|
||||
foresterItems.add(ForestryBlock.saplingGE.getWildcard());
|
||||
if (PluginManager.Module.ARBORICULTURE.isEnabled()) {
|
||||
foresterItems.add(ForestryBlock.saplingGE.getWildcard());
|
||||
}
|
||||
|
||||
// [3] Set valid items in hunter's backpack
|
||||
hunterItems.add(new ItemStack(Items.feather));
|
||||
|
||||
Reference in new issue
Block a user