From 6931a0866a1ed038b4afe38efeee23bdc233a132 Mon Sep 17 00:00:00 2001 From: LambdAurora Date: Fri, 15 Nov 2024 20:16:10 +0100 Subject: [PATCH] Fix entity rebuilding chunks every tick. --- build_logic/src/main/kotlin/lambdynamiclights.gradle.kts | 1 - .../lambdynlights/mixin/lightsource/EntityMixin.java | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/build_logic/src/main/kotlin/lambdynamiclights.gradle.kts b/build_logic/src/main/kotlin/lambdynamiclights.gradle.kts index 0e35e3f0..12a85798 100644 --- a/build_logic/src/main/kotlin/lambdynamiclights.gradle.kts +++ b/build_logic/src/main/kotlin/lambdynamiclights.gradle.kts @@ -38,7 +38,6 @@ val generateFmj = tasks.register("generateFmj", GenerateFmjTask::class) { .withLink("modmenu.github_releases", "${Constants.SOURCES_LINK}/releases") .withLink("modmenu.modrinth", "https://modrinth.com/mod/lambdynamiclights") .withLink("modmenu.bluesky", "https://bsky.app/profile/lambdaurora.dev") - .withLink("modmenu.twitter", "https://twitter.com/LambdAurora") } ) outputDir.set(project.file("build/generated/generated_resources/")) diff --git a/src/main/java/dev/lambdaurora/lambdynlights/mixin/lightsource/EntityMixin.java b/src/main/java/dev/lambdaurora/lambdynlights/mixin/lightsource/EntityMixin.java index 7b4d0ce4..3816bcf5 100644 --- a/src/main/java/dev/lambdaurora/lambdynlights/mixin/lightsource/EntityMixin.java +++ b/src/main/java/dev/lambdaurora/lambdynlights/mixin/lightsource/EntityMixin.java @@ -105,9 +105,9 @@ public double getDynamicLightPrevZ() { @Override public void updateDynamicLightPreviousCoordinates() { - this.lambdynlights$prevX = this.getX(); - this.lambdynlights$prevY = this.getY(); - this.lambdynlights$prevZ = this.getZ(); + this.lambdynlights$prevX = this.getDynamicLightX(); + this.lambdynlights$prevY = this.getDynamicLightY(); + this.lambdynlights$prevZ = this.getDynamicLightZ(); } @Override