From a18cf6fe8062c26ede2ff2874571e5089d5dceda Mon Sep 17 00:00:00 2001 From: EnZaXD <60033407+FlorianMichael@users.noreply.github.com> Date: Sun, 9 Apr 2023 18:12:51 +0200 Subject: [PATCH] Corrected class naming (#37) --- .../java/net/raphimc/viaproxy/protocolhack/ProtocolHack.java | 4 ++-- .../impl/{ViaProxyVPLoader.java => ViaProxyVPHLoader.java} | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename src/main/java/net/raphimc/viaproxy/protocolhack/impl/{ViaProxyVPLoader.java => ViaProxyVPHLoader.java} (98%) diff --git a/src/main/java/net/raphimc/viaproxy/protocolhack/ProtocolHack.java b/src/main/java/net/raphimc/viaproxy/protocolhack/ProtocolHack.java index 19d478f..b1ff5ce 100644 --- a/src/main/java/net/raphimc/viaproxy/protocolhack/ProtocolHack.java +++ b/src/main/java/net/raphimc/viaproxy/protocolhack/ProtocolHack.java @@ -21,7 +21,7 @@ import net.raphimc.viaprotocolhack.ViaProtocolHack; import net.raphimc.viaprotocolhack.impl.platform.*; import net.raphimc.viaproxy.plugins.PluginManager; import net.raphimc.viaproxy.plugins.events.ProtocolHackInitEvent; -import net.raphimc.viaproxy.protocolhack.impl.ViaProxyVPLoader; +import net.raphimc.viaproxy.protocolhack.impl.ViaProxyVPHLoader; import net.raphimc.viaproxy.protocolhack.impl.ViaProxyViaVersionPlatformImpl; import java.io.File; @@ -34,7 +34,7 @@ public class ProtocolHack { public static void init() { patchConfigs(); final Supplier[] platformSuppliers = PluginManager.EVENT_MANAGER.call(new ProtocolHackInitEvent(ViaBackwardsPlatformImpl::new, ViaRewindPlatformImpl::new, ViaLegacyPlatformImpl::new, ViaAprilFoolsPlatformImpl::new, ViaBedrockPlatformImpl::new)).getPlatformSuppliers().toArray(new Supplier[0]); - ViaProtocolHack.init(new ViaProxyViaVersionPlatformImpl(), new ViaProxyVPLoader(), null, null, platformSuppliers); + ViaProtocolHack.init(new ViaProxyViaVersionPlatformImpl(), new ViaProxyVPHLoader(), null, null, platformSuppliers); } private static void patchConfigs() { diff --git a/src/main/java/net/raphimc/viaproxy/protocolhack/impl/ViaProxyVPLoader.java b/src/main/java/net/raphimc/viaproxy/protocolhack/impl/ViaProxyVPHLoader.java similarity index 98% rename from src/main/java/net/raphimc/viaproxy/protocolhack/impl/ViaProxyVPLoader.java rename to src/main/java/net/raphimc/viaproxy/protocolhack/impl/ViaProxyVPHLoader.java index 57a19be..b0303af 100644 --- a/src/main/java/net/raphimc/viaproxy/protocolhack/impl/ViaProxyVPLoader.java +++ b/src/main/java/net/raphimc/viaproxy/protocolhack/impl/ViaProxyVPHLoader.java @@ -33,7 +33,7 @@ import net.raphimc.viaproxy.plugins.PluginManager; import net.raphimc.viaproxy.plugins.events.ViaLoadingEvent; import net.raphimc.viaproxy.protocolhack.providers.*; -public class ViaProxyVPLoader extends VPHLoader { +public class ViaProxyVPHLoader extends VPHLoader { @Override public void load() {