mirror of
https://github.com/ViaVersion/ViaProxy.git
synced 2024-12-22 16:38:04 +01:00
Corrected class naming (#37)
This commit is contained in:
parent
7f0da58577
commit
a18cf6fe80
@ -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() {
|
||||
|
@ -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() {
|
Loading…
Reference in New Issue
Block a user