From 9508bcc851c736d807ae912e0e5b33e2654b46cc Mon Sep 17 00:00:00 2001 From: nea Date: Mon, 12 Jun 2023 02:39:48 +0200 Subject: Add mixin extras --- src/main/java/moe/nea/firmament/init/MixinPlugin.java | 2 ++ src/main/java/moe/nea/firmament/mixins/MixinDrawContext.java | 2 -- src/main/kotlin/moe/nea/firmament/events/FirmamentEvent.kt | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) delete mode 100644 src/main/java/moe/nea/firmament/mixins/MixinDrawContext.java (limited to 'src/main') diff --git a/src/main/java/moe/nea/firmament/init/MixinPlugin.java b/src/main/java/moe/nea/firmament/init/MixinPlugin.java index 663c9d9..7d979ae 100644 --- a/src/main/java/moe/nea/firmament/init/MixinPlugin.java +++ b/src/main/java/moe/nea/firmament/init/MixinPlugin.java @@ -18,6 +18,7 @@ package moe.nea.firmament.init; +import com.llamalad7.mixinextras.MixinExtrasBootstrap; import org.objectweb.asm.tree.ClassNode; import org.spongepowered.asm.mixin.extensibility.IMixinConfigPlugin; import org.spongepowered.asm.mixin.extensibility.IMixinInfo; @@ -29,6 +30,7 @@ public class MixinPlugin implements IMixinConfigPlugin { @Override public void onLoad(String mixinPackage) { + MixinExtrasBootstrap.init(); } @Override diff --git a/src/main/java/moe/nea/firmament/mixins/MixinDrawContext.java b/src/main/java/moe/nea/firmament/mixins/MixinDrawContext.java deleted file mode 100644 index a30eb11..0000000 --- a/src/main/java/moe/nea/firmament/mixins/MixinDrawContext.java +++ /dev/null @@ -1,2 +0,0 @@ -package moe.nea.firmament.mixins;public class MixinDrawContext { -} diff --git a/src/main/kotlin/moe/nea/firmament/events/FirmamentEvent.kt b/src/main/kotlin/moe/nea/firmament/events/FirmamentEvent.kt index 5da47ed..161c4c2 100644 --- a/src/main/kotlin/moe/nea/firmament/events/FirmamentEvent.kt +++ b/src/main/kotlin/moe/nea/firmament/events/FirmamentEvent.kt @@ -24,8 +24,8 @@ package moe.nea.firmament.events * Typically, that event bus is implemented as a companion object * * ``` - * class SomeEvent : NEUEvent() { - * companion object : NEUEventBus() + * class SomeEvent : FirmamentEvent() { + * companion object : FirmamentEventBus() * } * ``` */ -- cgit