From 3d8c7d256cb244457177cf2f6f6d686427ba2a5f Mon Sep 17 00:00:00 2001 From: TheEpicBlock Date: Sat, 10 Feb 2024 00:02:31 +0100 Subject: [PATCH] Wheee Sorry for using fireblanket like this ^^' --- gradle.properties | 2 +- .../net/modfest/fireblanket/mixin/ChangeHowSleepTimeWorks.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gradle.properties b/gradle.properties index c7bce3b..de31660 100644 --- a/gradle.properties +++ b/gradle.properties @@ -9,7 +9,7 @@ yarn_mappings=1.20.4+build.1 loader_version=0.15.1 # Mod Properties -mod_version=0.4.4 +mod_version=0.4.5 maven_group=net.modfest archives_base_name=fireblanket diff --git a/src/main/java/net/modfest/fireblanket/mixin/ChangeHowSleepTimeWorks.java b/src/main/java/net/modfest/fireblanket/mixin/ChangeHowSleepTimeWorks.java index 05f062b..93ffbb2 100644 --- a/src/main/java/net/modfest/fireblanket/mixin/ChangeHowSleepTimeWorks.java +++ b/src/main/java/net/modfest/fireblanket/mixin/ChangeHowSleepTimeWorks.java @@ -24,7 +24,7 @@ protected ChangeHowSleepTimeWorks(MutableWorldProperties properties, RegistryKey @ModifyArg(method = "tick", at = @At(value = "INVOKE", target = "Lnet/minecraft/server/world/ServerWorld;setTimeOfDay(J)V")) long changeSleep(long input) { if (this.isDay()) { - return input - 24000L; + return this.properties.getTimeOfDay(); } return input; }