From 6b6ca5b3f94f7a8575c804983d02c6ae8201933e Mon Sep 17 00:00:00 2001 From: Sleepy Evelyn <46009144+sleepy-evelyn@users.noreply.github.com> Date: Fri, 10 Jan 2025 16:26:50 +0000 Subject: [PATCH] Remove Serene Seasons mixin --- build.gradle.kts | 4 ---- gradle.properties | 2 +- .../RandomUpdateHandlerMixin.java | 22 ------------------- src/main/resources/railwaystweaks.mixins.json | 1 - 4 files changed, 1 insertion(+), 28 deletions(-) delete mode 100644 src/main/java/dev/ithundxr/railwaystweaks/mixin/compat/sereneseasons/RandomUpdateHandlerMixin.java diff --git a/build.gradle.kts b/build.gradle.kts index b14e947..8a20210 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -76,10 +76,6 @@ dependencies { // OPAC API modCompileOnlyApi("maven.modrinth:open-parties-and-claims:fabric-1.20.1-0.23.2") - - // Serene Seasons - modCompileOnly("maven.modrinth:serene-seasons:4RgDk9NB") - modCompileOnly("maven.modrinth:glitchcore:25HLOiOl") } tasks.processResources { diff --git a/gradle.properties b/gradle.properties index f6df1d5..e195fa8 100644 --- a/gradle.properties +++ b/gradle.properties @@ -3,7 +3,7 @@ org.gradle.jvmargs=-Xmx2G org.gradle.caching = true # Mod Properties -mod_version = 0.0.51 +mod_version = 0.0.52 maven_group = dev.ithundxr archives_base_name = RailwaysTweaks diff --git a/src/main/java/dev/ithundxr/railwaystweaks/mixin/compat/sereneseasons/RandomUpdateHandlerMixin.java b/src/main/java/dev/ithundxr/railwaystweaks/mixin/compat/sereneseasons/RandomUpdateHandlerMixin.java deleted file mode 100644 index b5d43a4..0000000 --- a/src/main/java/dev/ithundxr/railwaystweaks/mixin/compat/sereneseasons/RandomUpdateHandlerMixin.java +++ /dev/null @@ -1,22 +0,0 @@ -package dev.ithundxr.railwaystweaks.mixin.compat.sereneseasons; - -import dev.ithundxr.railwaystweaks.utils.TickCounter; -import glitchcore.event.TickEvent; -import org.spongepowered.asm.mixin.Mixin; -import org.spongepowered.asm.mixin.Unique; -import org.spongepowered.asm.mixin.injection.At; -import org.spongepowered.asm.mixin.injection.Inject; -import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; -import sereneseasons.season.RandomUpdateHandler; - -@Mixin(RandomUpdateHandler.class) -public class RandomUpdateHandlerMixin { - - @Unique private static TickCounter railwaystweaks$tickCounter = new TickCounter(100); - - @Inject(method = "onWorldTick", at = @At("HEAD"), cancellable = true, remap = false) - private static void railwaystweaks$reduceRandomTicks(TickEvent.Level event, CallbackInfo ci) { - railwaystweaks$tickCounter.increment(); - if (!railwaystweaks$tickCounter.test()) ci.cancel(); - } -} diff --git a/src/main/resources/railwaystweaks.mixins.json b/src/main/resources/railwaystweaks.mixins.json index 1fe6b30..8e3370c 100644 --- a/src/main/resources/railwaystweaks.mixins.json +++ b/src/main/resources/railwaystweaks.mixins.json @@ -15,7 +15,6 @@ "compat.dcintegration.DiscordEventListenerMixin", "compat.dcintegration.FabricMessageUtilsMixin", "compat.enchancement.SlideComponentMixin", - "compat.sereneseasons.RandomUpdateHandlerMixin", "compat.tconstruct.LazyModifierMixin", "compat.tconstruct.SimpleChannelAccessor" ],