Description functions declared as @OnlyIn(Dist.CLIENT)
SirEdvin opened this issue ยท 6 comments
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?
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.
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.
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.