Skip to content

Commit

Permalink
Use the fixed gravity api
Browse files Browse the repository at this point in the history
  • Loading branch information
Treetrain1 committed Jan 5, 2025
1 parent 627dd3b commit 9cf04ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
});
Expand Down

0 comments on commit 9cf04ee

Please sign in to comment.