Move PostViaVersionLoadCallback into ViaFabricPlusVLLoader

This commit is contained in:
FlorianMichael 2024-04-28 14:35:03 +02:00
parent 38a900c78d
commit f45895c547
3 changed files with 4 additions and 3 deletions

View File

@ -57,7 +57,7 @@ ViaFabricPlus uses Gradle, to make sure that it is installed properly you can ch
=> If you are unsure if a change is relevant, ask in the ViaVersion discord, in general you should only implement changes
which could be detected by a server side anti cheat.
7. Update protocol constants in the `ItemTranslator` class
7. Update protocol constants in the `VFPProtocol` class
8. Check the ViaVersion/upstream protocol implementation for issues and report them if necessary or if these issues can't be fixed,
without tons of work, implement a workaround in ViaFabricPlus.
9. Run the game and check all GUIs and other visuals for issues.

View File

@ -20,7 +20,6 @@
package de.florianmichael.viafabricplus;
import de.florianmichael.viafabricplus.event.PostGameLoadCallback;
import de.florianmichael.viafabricplus.event.PostViaVersionLoadCallback;
import de.florianmichael.viafabricplus.fixes.ClientsideFixes;
import de.florianmichael.viafabricplus.protocoltranslator.ProtocolTranslator;
import de.florianmichael.viafabricplus.save.SaveManager;
@ -75,7 +74,6 @@ public class ViaFabricPlus {
PostGameLoadCallback.EVENT.register(() -> {
loadingFuture.join();
saveManager.init();
PostViaVersionLoadCallback.EVENT.invoker().onPostViaVersionLoad();
});
}

View File

@ -27,6 +27,7 @@ import com.viaversion.viaversion.protocols.protocol1_13to1_12_2.providers.Player
import com.viaversion.viaversion.protocols.protocol1_16to1_15_2.provider.PlayerAbilitiesProvider;
import com.viaversion.viaversion.protocols.protocol1_19to1_18_2.provider.AckSequenceProvider;
import com.viaversion.viaversion.protocols.protocol1_9to1_8.providers.HandItemProvider;
import de.florianmichael.viafabricplus.event.PostViaVersionLoadCallback;
import de.florianmichael.viafabricplus.protocoltranslator.impl.provider.viabedrock.ViaFabricPlusNettyPipelineProvider;
import de.florianmichael.viafabricplus.protocoltranslator.impl.provider.viabedrock.ViaFabricPlusTransferProvider;
import de.florianmichael.viafabricplus.protocoltranslator.impl.provider.vialegacy.*;
@ -69,6 +70,8 @@ public class ViaFabricPlusVLLoader extends VLLoader {
providers.use(NettyPipelineProvider.class, new ViaFabricPlusNettyPipelineProvider());
providers.use(TransferProvider.class, new ViaFabricPlusTransferProvider());
PostViaVersionLoadCallback.EVENT.invoker().onPostViaVersionLoad();
}
}