Skip to content

Commit

Permalink
fix compatibility in 1.19-1.19.2'
Browse files Browse the repository at this point in the history
isSingleplayer' method moved
  • Loading branch information
topi-banana committed Jan 31, 2025
1 parent 32a7b4f commit 9535efe
Show file tree
Hide file tree
Showing 7 changed files with 44 additions and 5 deletions.
1 change: 1 addition & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ stonecutter {
mc("1.16.5", "fabric", "forge")
mc("1.17.1", "fabric", "forge")
mc("1.18.2", "fabric", "forge")
mc("1.19.2", "fabric", "forge")
mc("1.19.4", "fabric", "forge", "paper")
mc("1.20.1", "fabric", "forge", "paper")
mc("1.20.2", "fabric", "forge", "paper")
Expand Down
2 changes: 2 additions & 0 deletions settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"fabric-1.16.5",
"fabric-1.17.1",
"fabric-1.18.2",
"fabric-1.19.2",
"fabric-1.19.4",
"fabric-1.20.1",
"fabric-1.20.2",
Expand All @@ -19,6 +20,7 @@
"forge-1.16.5",
"forge-1.17.1",
"forge-1.18.2",
"forge-1.19.2",
"forge-1.19.4",
"forge-1.20.1",
"forge-1.20.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
public class ClientPacketListenerMixin {
@Inject(method = "handleLogin", at = @At("RETURN"))
private void onJoin(ClientboundLoginPacket clientboundLoginPacket, CallbackInfo ci) {
//? if >=1.19 {
//? if >=1.19.3 {
if (Minecraft.getInstance().isSingleplayer()) return;
//?} else {
/* if (Minecraft.getInstance().isLocalServer()) return; */
Expand Down
21 changes: 21 additions & 0 deletions versions/fabric-1.19.2/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Fabric Properties
# check these on https://fallen-breath.github.io/fabric-versions/?&version=1.19.2
minecraft_version=1.19.2
yarn_mappings=1.19.2+build.28
platform=fabric
loom.platform=fabric

# Mod Metadata
# https://fabricmc.net/versions.html
fabric_loader_version=0.16.5
minecraft_dependency=>=1.19 <=1.19.2

# Build Information
# The target mc versions for the mod during mod publishing, separated with \n
game_versions=1.19\n1.19.1\n1.19.2

# Dependencies
fabric_api_version=0.77.0+1.19.2
modmenu_version=4.1.2
malilib_version=M3rtbAPE
litematica_version=0.12.7
4 changes: 2 additions & 2 deletions versions/fabric-1.19.4/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ loom.platform=fabric
# Mod Metadata
# https://fabricmc.net/versions.html
fabric_loader_version=0.16.5
minecraft_dependency=>=1.19 <=1.19.4
minecraft_dependency=>=1.19.3 <=1.19.4

# Build Information
# The target mc versions for the mod during mod publishing, separated with \n
game_versions=1.19\n1.19.1\n1.19.2\n1.19.3\n1.19.4
game_versions=1.19.3\n1.19.4

# Dependencies
fabric_api_version=0.87.2+1.19.4
Expand Down
15 changes: 15 additions & 0 deletions versions/forge-1.19.2/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Fabric Properties
# check these on https://fallen-breath.github.io/fabric-versions/?&version=1.19.2
minecraft_version=1.19.2
yarn_mappings=1.19.2+build.28
platform=forge
loom.platform=forge

# Mod Metadata
# https://files.minecraftforge.net/net/minecraftforge/forge/index_1.19.2.html
forge_version=43.4.16
minecraft_dependency=[1.19, 1.19.2]

# Build Information
# The target mc versions for the mod during mod publishing, separated with \n
game_versions=1.19\n1.19.1\n1.19.2
4 changes: 2 additions & 2 deletions versions/forge-1.19.4/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ loom.platform=forge
# Mod Metadata
# https://files.minecraftforge.net/net/minecraftforge/forge/index_1.19.4.html
forge_version=45.3.8
minecraft_dependency=[1.19, 1.19.4]
minecraft_dependency=[1.19.3, 1.19.4]

# Build Information
# The target mc versions for the mod during mod publishing, separated with \n
game_versions=1.19\n1.19.1\n1.19.2\n1.19.3\n1.19.4
game_versions=1.19.3\n1.19.4

0 comments on commit 9535efe

Please sign in to comment.