Skip to content

Commit

Permalink
Fix some unset render types and solid
Browse files Browse the repository at this point in the history
  • Loading branch information
KnightMiner committed May 12, 2020
1 parent 3a6f01e commit b7fae74
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public EnlightenedBushBlock(int color) {
.lightValue(15)
.hardnessAndResistance(0.2F)
.sound(SoundType.PLANT)
.notSolid()
);
this.color = color;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ public GlassTrapdoorBlock() {
super(Block.Properties.create(Material.GLASS)
.hardnessAndResistance(0.3F)
.sound(SoundType.GLASS)
.notSolid()
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,21 @@
import knightminer.inspirations.utility.client.CollectorScreen;
import knightminer.inspirations.utility.client.PipeScreen;
import net.minecraft.client.gui.ScreenManager;
import net.minecraft.client.renderer.RenderType;
import net.minecraft.client.renderer.RenderTypeLookup;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent;
import net.minecraftforge.fml.event.lifecycle.FMLCommonSetupEvent;

public class UtilityClientProxy extends ClientProxy {

@SubscribeEvent
public void clientSetup(FMLClientSetupEvent event) {
RenderType cutout = RenderType.getCutout();
RenderTypeLookup.setRenderLayer(InspirationsUtility.torchLeverFloor, cutout);
RenderTypeLookup.setRenderLayer(InspirationsUtility.torchLeverWall, cutout);
}

@SubscribeEvent
public void commonSetup(FMLCommonSetupEvent event) {

Expand Down

0 comments on commit b7fae74

Please sign in to comment.