Fix #1652 A way to make Cobwebs out of Silk Wisps and fix greenhouse item models

This commit is contained in:
Nedelosk committed 2017-04-07 13:21:39 +02:00
1 parent c840945706
commit 6e2ed37e80
2 files changed
+13

No files matched your search

@@ -297,6 +297,9 @@ public class PluginCore extends BlankForestryPlugin {
// / CAMOUFLAGE SPRAY CAN
RecipeUtil.addRecipe(items.camouflageSprayCan, "TTT", "TCT", "TCT", 'T', OreDictUtil.INGOT_TIN, 'C', items.craftingMaterial.getCamouflagedPaneling());
// / WEB
RecipeUtil.addRecipe(new ItemStack(Blocks.WEB, 4), "# #", " # ", "# #", '#', items.craftingMaterial.getSilkWisp());
if (ForestryAPI.enabledPlugins.contains(ForestryPluginUids.FACTORY)) {
// / CARPENTER
@@ -106,6 +106,16 @@ public class ModelGreenhouse extends ModelBlockDefault<BlockGreenhouse, ModelGre
baker.addBlockModel(pos, BlockGreenhouseType.getSprite(BlockGreenhouseType.PLAIN, null, null, world, pos), 100);
baker.setParticleSprite(plainSprite);
}
//Only item model
if(key.pos == null || key.state == null || key.world == null){
if (block.getGreenhouseType().hasOverlaySprite) {
TextureAtlasSprite[] sprite = new TextureAtlasSprite[6];
for (EnumFacing facing : EnumFacing.VALUES) {
sprite[facing.ordinal()] = BlockGreenhouseType.getSprite(block.getGreenhouseType(), facing, key.state, world, pos);
}
baker.addBlockModel(pos, sprite, 101);
}
}
} else {
if (block.getGreenhouseType().hasOverlaySprite) {
TextureAtlasSprite[] sprite = new TextureAtlasSprite[6];