Create

Create

86M Downloads

Description functions declared as @OnlyIn(Dist.CLIENT)

SirEdvin opened this issue ยท 6 comments

commented

Hello, thanks for awesome mod!

I am trying to provide some recipe reading from create system to CC:T, and for some recipes, especially for IAssemblyRecipe all description function marked as client only.

Can this be removed?

commented

What is the exact use case for this? That method usually returns a translatable component, but the server does not have language files, so the key cannot actually be translated server-side.

commented

Did you use runServer for the test? It will work if you use runClient.

commented

Well, it can.

This code snipped

@SubscribeEvent
    public static void tick(TickEvent.ServerTickEvent event) {
        if (event.phase != TickEvent.Phase.START) return;

        ProgressivePeripherals.LOGGER.warn(Lang.translate("recipe.assembly.cutting").getString());
    }

Printed a lot of

[00:24:55] [Server thread/WARN] [Progressive Peripherals/]: Cut with Saw

for me.

commented

Yep, with runServer

commented

This issue has been marked as stale because it has been inactive for 3 weeks. It will be closed if it remains inactive for another 3 weeks.

commented

This issue has been closed since it has been inactive for 3 weeks since it was marked as stale.