Undo accidental diff

This commit is contained in:
onebeastchris 2024-07-14 21:54:37 +02:00
parent 3a3f5e849b
commit 38e039b820
2 changed files with 5 additions and 6 deletions

View file

@ -40,7 +40,6 @@ import org.spongepowered.asm.mixin.Shadow;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
import org.spongepowered.asm.mixin.injection.callback.LocalCapture;
import java.util.Objects;
@ -51,7 +50,7 @@ public class IntegratedServerMixin implements GeyserServerPortGetter {
@Shadow @Final private Minecraft minecraft;
@Inject(method = "publishServer", at = @At("RETURN"), locals = LocalCapture.NO_CAPTURE)
@Inject(method = "publishServer", at = @At("RETURN"))
private void onOpenToLan(GameType gameType, boolean cheatsAllowed, int port, CallbackInfoReturnable<Boolean> cir) {
if (cir.getReturnValueZ()) {
// If the LAN is opened, starts Geyser.

View file

@ -4,14 +4,14 @@
"package": "org.geysermc.geyser.platform.mod.mixin",
"compatibilityLevel": "JAVA_17",
"mixins": [
"server.BlockPlaceMixin",
"server.ServerConnectionListenerMixin"
"server.BlockPlaceMixin",
"server.ServerConnectionListenerMixin"
],
"server": [
"server.DedicatedServerMixin"
"server.DedicatedServerMixin"
],
"client": [
"client.IntegratedServerMixin"
"client.IntegratedServerMixin"
],
"injectors": {
"defaultRequire": 1