diff --git a/gradle.properties b/gradle.properties index ca453462b..3729aad91 100644 --- a/gradle.properties +++ b/gradle.properties @@ -8,7 +8,7 @@ mod_version = 0.5.0.i artifact_minecraft_version = 1.18.2 minecraft_version = 1.18.2 -forge_version = 40.1.60 +forge_version = 40.2.1 # build dependency versions forgegradle_version = 5.1.53 diff --git a/src/main/java/com/simibubi/create/events/CommonEvents.java b/src/main/java/com/simibubi/create/events/CommonEvents.java index 38156537a..b9a3baa8b 100644 --- a/src/main/java/com/simibubi/create/events/CommonEvents.java +++ b/src/main/java/com/simibubi/create/events/CommonEvents.java @@ -60,6 +60,7 @@ import net.minecraftforge.event.world.ChunkEvent; import net.minecraftforge.event.world.WorldEvent; import net.minecraftforge.eventbus.api.EventPriority; import net.minecraftforge.eventbus.api.SubscribeEvent; +import net.minecraftforge.fml.LogicalSide; import net.minecraftforge.fml.ModList; import net.minecraftforge.fml.common.Mod.EventBusSubscriber; import net.minecraftforge.forgespi.language.IModFileInfo; @@ -120,9 +121,11 @@ public class CommonEvents { } @SubscribeEvent - public static void onWorldTick(WorldTickEvent event) { + public static void onServerWorldTick(WorldTickEvent event) { if (event.phase == Phase.START) return; + if (event.side == LogicalSide.CLIENT) + return; Level world = event.world; ContraptionHandler.tick(world); CapabilityMinecartController.tick(world);