mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-18 03:15:07 +00:00
Fix vine and mushroom rendering
This commit is contained in:
1 parent
2577de5b60
commit
0e73e16e10
2 files changed
+5
-2
No files matched your search
@@ -55,6 +55,7 @@ import vazkii.botania.common.block.BlockSpecialFlower;
|
||||
import vazkii.botania.common.block.ModBlocks;
|
||||
import vazkii.botania.common.block.ModFluffBlocks;
|
||||
import vazkii.botania.common.block.decor.BlockFloatingFlower;
|
||||
import vazkii.botania.common.block.decor.BlockModMushroom;
|
||||
import vazkii.botania.common.block.decor.BlockShinyFlower;
|
||||
import vazkii.botania.common.block.decor.panes.BlockModPane;
|
||||
import vazkii.botania.common.core.handler.ConfigHandler;
|
||||
@@ -139,6 +140,7 @@ public class ClientProxy implements IProxy {
|
||||
RenderTypeLookup.setRenderLayer(ModBlocks.mesaAltar, RenderType.getCutout());
|
||||
RenderTypeLookup.setRenderLayer(ModBlocks.mossyAltar, RenderType.getCutout());
|
||||
RenderTypeLookup.setRenderLayer(ModBlocks.ghostRail, RenderType.getCutout());
|
||||
RenderTypeLookup.setRenderLayer(ModBlocks.solidVines, RenderType.getCutout());
|
||||
|
||||
RenderTypeLookup.setRenderLayer(ModBlocks.manaGlass, RenderType.getTranslucent());
|
||||
RenderTypeLookup.setRenderLayer(ModFluffBlocks.managlassPane, RenderType.getTranslucent());
|
||||
@@ -156,7 +158,8 @@ public class ClientProxy implements IProxy {
|
||||
|
||||
Registry.BLOCK.stream().filter(b -> b.getRegistryName().getNamespace().equals(LibMisc.MOD_ID))
|
||||
.forEach(b -> {
|
||||
if (b instanceof BlockFloatingFlower || b instanceof FlowerBlock || b instanceof TallFlowerBlock)
|
||||
if (b instanceof BlockFloatingFlower || b instanceof FlowerBlock
|
||||
|| b instanceof TallFlowerBlock || b instanceof BlockModMushroom)
|
||||
RenderTypeLookup.setRenderLayer(b, RenderType.getCutout());
|
||||
});
|
||||
}
|
||||
|
||||
@@ -479,7 +479,7 @@ public final class ModBlocks {
|
||||
|
||||
register(r, new BlockConjurationCatalyst(Block.Properties.create(Material.ROCK).hardnessAndResistance(2, 10).sound(SoundType.STONE)), LibBlockNames.CONJURATION_CATALYST);
|
||||
register(r, new BlockBifrost(Block.Properties.create(Material.GLASS).hardnessAndResistance(-1, 0.3F).lightValue(15).sound(SoundType.GLASS).nonOpaque()), LibBlockNames.BIFROST);
|
||||
register(r, new BlockSolidVines(Block.Properties.create(Material.TALL_PLANTS).hardnessAndResistance(0.2F).sound(SoundType.PLANT)), LibBlockNames.SOLID_VINE);
|
||||
register(r, new BlockSolidVines(Block.Properties.create(Material.TALL_PLANTS).hardnessAndResistance(0.2F).sound(SoundType.PLANT).nonOpaque()), LibBlockNames.SOLID_VINE);
|
||||
|
||||
builder = Block.Properties.create(Material.PLANTS).doesNotBlockMovement().hardnessAndResistance(0).sound(SoundType.PLANT).lightValue(4);
|
||||
for(DyeColor color : DyeColor.values()) {
|
||||
|
||||
Reference in new issue
Block a user