mirror of
https://github.com/ViaVersion/ViaFabric.git
synced 2024-11-28 12:45:25 +01:00
hardcode messages for now
This commit is contained in:
parent
35b22e17f8
commit
2d62af18d3
@ -32,18 +32,18 @@ import com.github.creeper123123321.viafabric.util.JLoggerToLog4j;
|
|||||||
import com.google.common.util.concurrent.ThreadFactoryBuilder;
|
import com.google.common.util.concurrent.ThreadFactoryBuilder;
|
||||||
import io.netty.channel.DefaultEventLoop;
|
import io.netty.channel.DefaultEventLoop;
|
||||||
import io.netty.channel.EventLoop;
|
import io.netty.channel.EventLoop;
|
||||||
import net.fabricmc.api.ModInitializer;
|
import net.fabricmc.api.ClientModInitializer;
|
||||||
import org.apache.logging.log4j.LogManager;
|
import org.apache.logging.log4j.LogManager;
|
||||||
import us.myles.ViaVersion.ViaManager;
|
import us.myles.ViaVersion.ViaManager;
|
||||||
import us.myles.ViaVersion.api.Via;
|
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 java.util.logging.Logger JLOGGER = new JLoggerToLog4j(LogManager.getLogger("ViaFabric"));
|
||||||
public static final EventLoop EVENT_LOOP = new DefaultEventLoop(new ThreadFactoryBuilder()
|
public static final EventLoop EVENT_LOOP = new DefaultEventLoop(new ThreadFactoryBuilder()
|
||||||
.setNameFormat("ViaFabric").build());
|
.setNameFormat("ViaFabric").build());
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onInitialize() {
|
public void onInitializeClient() {
|
||||||
Via.init(ViaManager.builder()
|
Via.init(ViaManager.builder()
|
||||||
.injector(new VRInjector())
|
.injector(new VRInjector())
|
||||||
.loader(new VRLoader())
|
.loader(new VRLoader())
|
||||||
|
@ -56,12 +56,12 @@ public abstract class MixinMultiplayerGui extends Gui {
|
|||||||
protocolVersion.method_1890(new VersionFormatFilter());
|
protocolVersion.method_1890(new VersionFormatFilter());
|
||||||
this.listeners.add(protocolVersion);
|
this.listeners.add(protocolVersion);
|
||||||
addButton(new SaveProtocolButton(6356, width / 2 + 100, 8, 50, 20,
|
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"))
|
@Inject(method = "draw", at = @At("TAIL"))
|
||||||
private void onDraw(int p_1, int p_2, float p_3, CallbackInfo ci) {
|
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);
|
protocolVersion.render(p_1, p_2, p_3);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,4 +0,0 @@
|
|||||||
{
|
|
||||||
"gui.protocol_version": "Protocol Version:",
|
|
||||||
"gui.save_protocol_version": "Save"
|
|
||||||
}
|
|
@ -1,6 +0,0 @@
|
|||||||
{
|
|
||||||
"pack": {
|
|
||||||
"pack_format": 4,
|
|
||||||
"description": "ViaRift"
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user