Skip to content

Commit

Permalink
Fix SMP issues
Browse files Browse the repository at this point in the history
  • Loading branch information
rubensworks committed Jul 12, 2024
1 parent 860c7c9 commit 652dd90
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
mod_id=integrateddynamics
mod_version=1.21.4
minecraft_version=1.21
neoforge_version=21.0.43-beta
neoforge_version=21.0.86-beta
cyclopscore_version=1.19.1-462
integrateddynamicscompat_version=1.0.0-63
release_type=release
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import net.neoforged.api.distmarker.Dist;
import net.neoforged.api.distmarker.OnlyIn;
import net.neoforged.neoforge.server.ServerLifecycleHooks;
import org.cyclops.cyclopscore.helper.MinecraftHelpers;


/**
Expand All @@ -29,6 +30,9 @@ public static ValueDeseralizationContext ofClient() {
}

public static ValueDeseralizationContext ofAllEnabled() {
if (MinecraftHelpers.isClientSide()) {
return ofClient();
}
return new ValueDeseralizationContext(ServerLifecycleHooks.getCurrentServer().registryAccess());
}
}

0 comments on commit 652dd90

Please sign in to comment.