mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-22 12:37:59 +01:00
Fixed crash when rendering a skull outside a world
This commit is contained in:
parent
af9fe8579e
commit
13ff5def65
1 changed files with 3 additions and 0 deletions
|
@ -10,6 +10,7 @@ import com.mojang.authlib.GameProfile;
|
|||
import net.fabricmc.fabric.api.client.render.BlockEntityRendererRegistry;
|
||||
import net.minecraft.block.SkullBlock;
|
||||
import net.minecraft.block.entity.SkullBlockEntity;
|
||||
import net.minecraft.client.render.block.entity.BlockEntityRenderDispatcher;
|
||||
import net.minecraft.client.render.block.entity.SkullBlockEntityRenderer;
|
||||
import net.minecraft.util.Identifier;
|
||||
import net.minecraft.util.SystemUtil;
|
||||
|
@ -61,6 +62,8 @@ public class PonySkullRenderer extends SkullBlockEntityRenderer {
|
|||
}
|
||||
}
|
||||
|
||||
INSTANCE.setRenderManager(BlockEntityRenderDispatcher.INSTANCE);
|
||||
|
||||
return INSTANCE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue