Skip to content

Commit

Permalink
fix: include mixins in mods.toml + other fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Zepalesque committed May 25, 2024
1 parent de883b2 commit 315ba70
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ org.gradle.jvmargs=-Xmx3G
org.gradle.daemon=false
org.gradle.debug=false

mod_version=1.0.12
mod_version=1.0.13

# Mod
mod_id=zenith
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import net.minecraft.world.entity.vehicle.Boat;
import net.minecraft.world.item.Item;
import net.minecraft.world.level.GameRules;
import net.zepalesque.zenith.mixin.mixins.common.BoatAccessor;
import net.zepalesque.zenith.mixin.mixins.common.accessor.BoatAccessor;

public interface ZenithBoatBehavior {
default void fall(Boat boat, double y, boolean onGround) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package net.zepalesque.zenith.mixin.mixins.common;
package net.zepalesque.zenith.mixin.mixins.common.accessor;

import net.minecraft.world.entity.vehicle.Boat;
import org.spongepowered.asm.mixin.Mixin;
Expand Down
4 changes: 4 additions & 0 deletions src/main/resources/META-INF/mods.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ Zenith is a library designed to simplify a variety of tedious processes in a way
The main reason the mod exists is for the Aether: Redux, but it may be used in the future, and may be useful as well.
'''

[[mixins]]
config="${mod_id}.mixins.json"

[[dependencies.zenith]] #optional
modId="neoforge" #mandatory
type="required" #mandatory
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/zenith.mixins.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
"compatibilityLevel": "JAVA_17",
"refmap": "zenith.refmap.json",
"mixins": [
"common.BoatAccessor"
"common.accessor.BoatAccessor"
]
}

0 comments on commit 315ba70

Please sign in to comment.