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