Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ org.gradle.configuration-cache=false

# Fabric Properties
# check these on https://fabricmc.net/develop
minecraft_version=26.1
loader_version=0.18.4
minecraft_version=26.2
loader_version=0.19.3
loom_version=1.15-SNAPSHOT

# Mod Properties
Expand All @@ -17,7 +17,7 @@ maven_group=dev.httxrafa.modflared
archives_base_name=modflared

# Dependencies
fabric_version=0.144.3+26.1
fabric_version=0.153.0+26.2

# Modrinth Properties
modrinth_project_id=modflared
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public class ConnectScreenRunnableMixin {
var status = Modflared.TUNNEL_MANAGER.handleConnect(address);
Modflared.TUNNEL_MANAGER.prepareConnection(status, connection);

var currentScreen = Minecraft.getInstance().screen;
var currentScreen = Minecraft.getInstance().gui.screen();
if (currentScreen instanceof ConnectScreen connectScreen) {
((IConnectScreen) connectScreen).setStatus(status);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,9 @@ public void loadForcedTunnels() {
}

public static void displayErrorToast() {
Minecraft.getInstance().getToastManager().addToast(new SystemToast(SystemToast.SystemToastId.PERIODIC_NOTIFICATION, Component.translatable("gui.toast.title.error"), Component.translatable("gui.toast.body.error")));
var minecraft = Minecraft.getInstance();
if (minecraft == null || minecraft.gui == null) return;
minecraft.gui.toastManager().addToast(new SystemToast(SystemToast.SystemToastId.PERIODIC_NOTIFICATION, Component.translatable("gui.toast.title.error"), Component.translatable("gui.toast.body.error")));
}

}