mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-28 07:35:47 +00:00
Fix camouflage and add agriculture tab
This commit is contained in:
1 parent
86a93b29c0
commit
3eaf9d4d30
15 files changed
+158
-30
No files matched your search
@@ -42,9 +42,11 @@ import net.minecraftforge.common.property.IUnlistedProperty;
|
||||
import net.minecraftforge.common.property.Properties;
|
||||
import net.minecraftforge.fml.relauncher.Side;
|
||||
import net.minecraftforge.fml.relauncher.SideOnly;
|
||||
import forestry.api.core.ForestryAPI;
|
||||
import forestry.api.core.ICamouflageHandler;
|
||||
import forestry.api.core.ICamouflagedBlock;
|
||||
import forestry.api.core.IModelManager;
|
||||
import forestry.api.core.Tabs;
|
||||
import forestry.api.multiblock.IGreenhouseComponent;
|
||||
import forestry.core.CreativeTabForestry;
|
||||
import forestry.core.blocks.BlockStructure;
|
||||
@@ -61,6 +63,7 @@ import forestry.greenhouse.tiles.TileGreenhouseHeater;
|
||||
import forestry.greenhouse.tiles.TileGreenhousePlain;
|
||||
import forestry.greenhouse.tiles.TileGreenhouseSprinkler;
|
||||
import forestry.greenhouse.tiles.TileGreenhouseValve;
|
||||
import forestry.plugins.ForestryPluginUids;
|
||||
|
||||
public abstract class BlockGreenhouse extends BlockStructure {
|
||||
|
||||
@@ -106,7 +109,11 @@ public abstract class BlockGreenhouse extends BlockStructure {
|
||||
|
||||
setHardness(1.0f);
|
||||
setHarvestLevel("pickaxe", 0);
|
||||
setCreativeTab(CreativeTabForestry.tabForestry);
|
||||
if(ForestryAPI.enabledPlugins.contains(ForestryPluginUids.FARMING)){
|
||||
setCreativeTab(Tabs.tabAgriculture);
|
||||
}else{
|
||||
setCreativeTab(CreativeTabForestry.tabForestry);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user