Fixes #4453: Avoid using clientside methods serverside.

This commit is contained in:
yueh
2020-07-07 18:13:32 +02:00
parent 450299cb67
commit 1eaddef694
2 changed files with 22 additions and 13 deletions
+4 -4
View File
@@ -383,10 +383,10 @@ final class Registration {
// Block and part interface have different translation keys, but support the
// same upgrades
ITextComponent interfaceGroup = parts.iface().asItem().getName();
ITextComponent itemIoBusGroup = GuiText.IOBuses.textComponent();
ITextComponent fluidIoBusGroup = GuiText.IOBusesFluids.textComponent();
ITextComponent storageCellGroup = GuiText.IOBusesFluids.textComponent();
String interfaceGroup = parts.iface().asItem().getTranslationKey();
String itemIoBusGroup = GuiText.IOBuses.getTranslationKey();
String fluidIoBusGroup = GuiText.IOBusesFluids.getTranslationKey();
String storageCellGroup = GuiText.IOBusesFluids.getTranslationKey();
// default settings..
((P2PTunnelRegistry) registries.p2pTunnel()).configure();