Fixed crash when rendering a skull outside a world

This commit is contained in:
Sollace 2019-07-14 15:00:57 +02:00
parent af9fe8579e
commit 13ff5def65

View file

@ -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;
}