Skip to content

Commit

Permalink
(forge) fix forge versions + fix tunnel attach
Browse files Browse the repository at this point in the history
  • Loading branch information
maxomatic458 committed Jul 19, 2023
1 parent f146e99 commit 8f99c58
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ public void makeLanPublic() {
}

if (server.isRemote()) {
server.setServerIp("127.0.0.1");
client.player.sendMessage(Text.literal("attaching tunnel to existing lan server"));
} else {
server.openToLan(defaultGameMode, cheatsAllowed, NetworkUtils.findLocalPort());
Expand Down
1 change: 1 addition & 0 deletions forge/src/main/java/gg/playit/playitforge/PlayitForge.java
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ public void makeLanPublic() {
}

if (server.isPublished()) {
server.setLocalIp("127.0.0.1");
client.player.sendSystemMessage(Component.literal("attaching tunnel to existing lan server"));
} else {

Expand Down
4 changes: 2 additions & 2 deletions forge/src/main/resources/META-INF/mods.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ modId = "forge" #mandatory
# Does this dependency have to exist - if not, ordering below must be specified
mandatory = true #mandatory
# The version range of the dependency
versionRange = "[41,)" #mandatory
versionRange = ">=41" #mandatory
# An ordering relationship for the dependency - BEFORE or AFTER required if the relationship is not mandatory
ordering = "NONE"
# Side this dependency is applied on - BOTH, CLIENT or SERVER
Expand All @@ -58,6 +58,6 @@ side = "BOTH"
modId = "minecraft"
mandatory = true
# This version range declares a minimum of the current minecraft version up to but not including the next major version
versionRange = "[1.19,1.19.1,1.19.2,1.19.3,1.19.4,1.20)"
versionRange = ">=1.19"
ordering = "NONE"
side = "BOTH"

0 comments on commit 8f99c58

Please sign in to comment.