From 9cf04ee39b4773cb22514e291e3ffcfec1c47c63 Mon Sep 17 00:00:00 2001 From: Treetrain1 Date: Sun, 5 Jan 2025 16:08:07 -0600 Subject: [PATCH] Use the fixed gravity api --- settings.gradle.kts | 2 +- src/main/java/net/frozenblock/trailiertales/TrailierTales.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/settings.gradle.kts b/settings.gradle.kts index ba4d9538..973db39a 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -27,7 +27,7 @@ pluginManagement { rootProject.name = "Trailier Tales" -localRepository("FrozenLib", "maven.modrinth:frozenlib", true, false) +localRepository("FrozenLib", "maven.modrinth:frozenlib", true, true) localRepository("WilderWild", "maven.modrinth:wilder-wild", true, false) fun localRepository(repo: String, dependencySub: String, kotlin: Boolean, enabled: Boolean) { diff --git a/src/main/java/net/frozenblock/trailiertales/TrailierTales.java b/src/main/java/net/frozenblock/trailiertales/TrailierTales.java index b7aa8736..fe03070a 100644 --- a/src/main/java/net/frozenblock/trailiertales/TrailierTales.java +++ b/src/main/java/net/frozenblock/trailiertales/TrailierTales.java @@ -90,7 +90,7 @@ public void onInitialize(String modId, ModContainer container) { GravityAPI.MODIFICATIONS.register(gravityContext -> { if (gravityContext.entity != null) { if (gravityContext.state.getBlock() instanceof EctoplasmBlock) { - gravityContext.gravity *= EctoplasmBlock.GRAVITY_SLOWDOWN; + gravityContext.gravity = gravityContext.gravity.scale(EctoplasmBlock.GRAVITY_SLOWDOWN); } } });