-
-
Notifications
You must be signed in to change notification settings - Fork 244
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix ServerStatus missing vanilla constructor (#1179)
- Loading branch information
Showing
3 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
...n/java/io/izzel/arclight/common/mixin/core/network/protocol/status/ServerStatusMixin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package io.izzel.arclight.common.mixin.core.network.protocol.status; | ||
|
||
import net.minecraft.network.chat.Component; | ||
import net.minecraft.network.protocol.status.ServerStatus; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
|
||
import java.util.Optional; | ||
|
||
@Mixin(ServerStatus.class) | ||
public class ServerStatusMixin { | ||
|
||
public void arclight$constructor(Component description, Optional<ServerStatus.Players> players, Optional<ServerStatus.Version> version, Optional<ServerStatus.Favicon> favicon, boolean enforcesSecureChat, Optional<net.minecraftforge.network.ServerStatusPing> forgeData) { | ||
throw new RuntimeException(); | ||
} | ||
|
||
public void arclight$constructor(Component description, Optional<ServerStatus.Players> players, Optional<ServerStatus.Version> version, Optional<ServerStatus.Favicon> favicon, boolean enforcesSecureChat) { | ||
arclight$constructor(description, players, version, favicon, enforcesSecureChat, Optional.empty()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters