mirror of
https://github.com/Pridecraft-Studios/joy.git
synced 2025-08-03 14:36:03 -04:00
Fix toy sharks not rendering correctly.
This commit is contained in:
parent
3dde7305bf
commit
b83f53eebb
@ -1,5 +1,6 @@
|
||||
package gay.pridecraft.joy.fabric.client;
|
||||
|
||||
import gay.pridecraft.joy.block.BlahajBlocks;
|
||||
import gay.pridecraft.joy.client.SplashUtil;
|
||||
import gay.pridecraft.joy.fabric.FabricUtil;
|
||||
import gay.pridecraft.joy.particle.TotemOfPrideParticle;
|
||||
@ -21,6 +22,7 @@ import net.fabricmc.fabric.api.client.particle.v1.ParticleFactoryRegistry;
|
||||
import net.fabricmc.fabric.api.client.rendering.v1.EntityRendererRegistry;
|
||||
import net.fabricmc.fabric.api.client.rendering.v1.LivingEntityFeatureRendererRegistrationCallback;
|
||||
import net.fabricmc.loader.api.FabricLoader;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.client.render.RenderLayer;
|
||||
import net.minecraft.client.render.block.entity.BlockEntityRendererFactories;
|
||||
import net.minecraft.text.Text;
|
||||
@ -49,6 +51,15 @@ public class JoyClient implements ClientModInitializer {
|
||||
JoyBlocks.POTTED_TRANS_ALLIUM
|
||||
);
|
||||
|
||||
BlockRenderLayerMap.INSTANCE.putBlocks(RenderLayer.getCutout(),
|
||||
BlahajBlocks.GRAY_SHARK_BLOCK,
|
||||
BlahajBlocks.BLAHAJ_BLOCK
|
||||
);
|
||||
|
||||
BlockRenderLayerMap.INSTANCE.putBlocks(RenderLayer.getCutout(),
|
||||
BlahajBlocks.PRIDE_BLOCKS.toArray(Block[]::new)
|
||||
);
|
||||
|
||||
if (!FabricLoader.getInstance().isModLoaded("lilium")) {
|
||||
LivingEntityFeatureRendererRegistrationCallback.EVENT.register((entityType, entityRenderer, registrationHelper, context) -> {
|
||||
Identifier elytra = Identifier.ofVanilla("textures/entity/elytra.png");
|
||||
|
Loading…
x
Reference in New Issue
Block a user