Skip to content

Commit

Permalink
Fix OnlyIn
Browse files Browse the repository at this point in the history
Signed-off-by: shedaniel <[email protected]>
  • Loading branch information
shedaniel committed Apr 6, 2022
1 parent 67c1a44 commit 6c40332
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

import dev.architectury.utils.Env;
import dev.architectury.utils.EnvExecutor;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.api.distmarker.OnlyIn;
import net.minecraftforge.fml.common.Mod;
import uk.me.desert_island.rer.RoughlyEnoughResources;
import uk.me.desert_island.rer.RoughlyEnoughResourcesClient;
Expand All @@ -13,6 +15,7 @@ public RoughlyEnoughResourcesForge() {
EnvExecutor.runInEnv(Env.CLIENT, () -> Client::run);
}

@OnlyIn(Dist.CLIENT)
private static class Client {
public static void run() {
RoughlyEnoughResourcesClient.onInitializeClient();
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ minecraft_version=1.18.2
fabric_loader_version=0.13.3
forge_version=1.18.2-40.0.40
# Mod Properties
mod_version=2.5.0
mod_version=2.5.1
maven_group=net.fabricmc
archives_base_name=rer
# Dependencies
Expand Down

0 comments on commit 6c40332

Please sign in to comment.