mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-12-16 01:03:41 +01:00
RenderType hotfix
This commit is contained in:
parent
b38dd90431
commit
859d9fccf6
2 changed files with 2 additions and 1 deletions
|
@ -1292,6 +1292,7 @@ public class AllBlocks {
|
||||||
REGISTRATE.block("copper_backtank", CopperBacktankBlock::new)
|
REGISTRATE.block("copper_backtank", CopperBacktankBlock::new)
|
||||||
.initialProperties(SharedProperties::softMetal)
|
.initialProperties(SharedProperties::softMetal)
|
||||||
.blockstate((c, p) -> p.horizontalBlock(c.getEntry(), AssetLookup.partialBaseModel(c, p)))
|
.blockstate((c, p) -> p.horizontalBlock(c.getEntry(), AssetLookup.partialBaseModel(c, p)))
|
||||||
|
.addLayer(() -> RenderType::getCutoutMipped)
|
||||||
.transform(StressConfigDefaults.setImpact(4.0))
|
.transform(StressConfigDefaults.setImpact(4.0))
|
||||||
.loot((lt, block) -> {
|
.loot((lt, block) -> {
|
||||||
Builder builder = LootTable.builder();
|
Builder builder = LootTable.builder();
|
||||||
|
|
|
@ -60,7 +60,7 @@ public class CopperBacktankArmorLayer<T extends LivingEntity, M extends EntityMo
|
||||||
BipedModel<?> model = (BipedModel<?>) entityModel;
|
BipedModel<?> model = (BipedModel<?>) entityModel;
|
||||||
BlockState renderedState = AllBlocks.COPPER_BACKTANK.getDefaultState()
|
BlockState renderedState = AllBlocks.COPPER_BACKTANK.getDefaultState()
|
||||||
.with(CopperBacktankBlock.HORIZONTAL_FACING, Direction.SOUTH);
|
.with(CopperBacktankBlock.HORIZONTAL_FACING, Direction.SOUTH);
|
||||||
RenderType renderType = RenderType.getSolid();
|
RenderType renderType = RenderType.getCutout();
|
||||||
|
|
||||||
SuperByteBuffer backtank = CreateClient.bufferCache.renderBlock(renderedState);
|
SuperByteBuffer backtank = CreateClient.bufferCache.renderBlock(renderedState);
|
||||||
SuperByteBuffer cogs =
|
SuperByteBuffer cogs =
|
||||||
|
|
Loading…
Reference in a new issue