From 2d62af18d3ed45962e27bfa5b863d1bfbe981ced Mon Sep 17 00:00:00 2001 From: creeper123123321 Date: Sat, 5 Jan 2019 20:37:23 -0200 Subject: [PATCH] hardcode messages for now --- .../com/github/creeper123123321/viafabric/ViaFabric.java | 6 +++--- .../viafabric/mixin/client/MixinMultiplayerGui.java | 4 ++-- src/main/resources/assets/viarift/lang/en_us.json | 4 ---- src/main/resources/pack.mcmeta | 6 ------ 4 files changed, 5 insertions(+), 15 deletions(-) delete mode 100644 src/main/resources/assets/viarift/lang/en_us.json delete mode 100644 src/main/resources/pack.mcmeta diff --git a/src/main/java/com/github/creeper123123321/viafabric/ViaFabric.java b/src/main/java/com/github/creeper123123321/viafabric/ViaFabric.java index e1beea0..c1f4c9a 100644 --- a/src/main/java/com/github/creeper123123321/viafabric/ViaFabric.java +++ b/src/main/java/com/github/creeper123123321/viafabric/ViaFabric.java @@ -32,18 +32,18 @@ import com.github.creeper123123321.viafabric.util.JLoggerToLog4j; import com.google.common.util.concurrent.ThreadFactoryBuilder; import io.netty.channel.DefaultEventLoop; import io.netty.channel.EventLoop; -import net.fabricmc.api.ModInitializer; +import net.fabricmc.api.ClientModInitializer; import org.apache.logging.log4j.LogManager; import us.myles.ViaVersion.ViaManager; import us.myles.ViaVersion.api.Via; -public class ViaFabric implements ModInitializer { +public class ViaFabric implements ClientModInitializer { public static final java.util.logging.Logger JLOGGER = new JLoggerToLog4j(LogManager.getLogger("ViaFabric")); public static final EventLoop EVENT_LOOP = new DefaultEventLoop(new ThreadFactoryBuilder() .setNameFormat("ViaFabric").build()); @Override - public void onInitialize() { + public void onInitializeClient() { Via.init(ViaManager.builder() .injector(new VRInjector()) .loader(new VRLoader()) diff --git a/src/main/java/com/github/creeper123123321/viafabric/mixin/client/MixinMultiplayerGui.java b/src/main/java/com/github/creeper123123321/viafabric/mixin/client/MixinMultiplayerGui.java index 583b037..c23a581 100644 --- a/src/main/java/com/github/creeper123123321/viafabric/mixin/client/MixinMultiplayerGui.java +++ b/src/main/java/com/github/creeper123123321/viafabric/mixin/client/MixinMultiplayerGui.java @@ -56,12 +56,12 @@ public abstract class MixinMultiplayerGui extends Gui { protocolVersion.method_1890(new VersionFormatFilter()); this.listeners.add(protocolVersion); addButton(new SaveProtocolButton(6356, width / 2 + 100, 8, 50, 20, - I18n.translate("gui.save_protocol_version"), protocolVersion)); + I18n.translate("selectWorld.edit.save"), protocolVersion)); } @Inject(method = "draw", at = @At("TAIL")) private void onDraw(int p_1, int p_2, float p_3, CallbackInfo ci) { - drawStringCentered(fontRenderer, I18n.translate("gui.protocol_version"), this.width / 2, 12, 0xFFFFFF); + drawStringCentered(fontRenderer, "Protocol Version:", this.width / 2, 12, 0xFFFFFF); protocolVersion.render(p_1, p_2, p_3); } diff --git a/src/main/resources/assets/viarift/lang/en_us.json b/src/main/resources/assets/viarift/lang/en_us.json deleted file mode 100644 index b1be4e9..0000000 --- a/src/main/resources/assets/viarift/lang/en_us.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "gui.protocol_version": "Protocol Version:", - "gui.save_protocol_version": "Save" -} \ No newline at end of file diff --git a/src/main/resources/pack.mcmeta b/src/main/resources/pack.mcmeta deleted file mode 100644 index 0312f34..0000000 --- a/src/main/resources/pack.mcmeta +++ /dev/null @@ -1,6 +0,0 @@ -{ - "pack": { - "pack_format": 4, - "description": "ViaRift" - } -} \ No newline at end of file