From 5bd5e48f0d5311b08ac53b1973a0cf4aca370eba Mon Sep 17 00:00:00 2001 From: moonleay Date: Sat, 27 Apr 2024 03:44:06 +0200 Subject: [PATCH] chore: renamed mixins to always have Mixin at the end --- .../mixin/{NoBlockUpdates.java => NoBlockUpdatesMixin.java} | 2 +- .../mixin/{NoClipCameraFix.java => NoClipCameraFixMixin.java} | 2 +- src/main/resources/gimble.mixins.json | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) rename src/main/java/net/moonleay/gimble/mixin/{NoBlockUpdates.java => NoBlockUpdatesMixin.java} (97%) rename src/main/java/net/moonleay/gimble/mixin/{NoClipCameraFix.java => NoClipCameraFixMixin.java} (95%) diff --git a/src/main/java/net/moonleay/gimble/mixin/NoBlockUpdates.java b/src/main/java/net/moonleay/gimble/mixin/NoBlockUpdatesMixin.java similarity index 97% rename from src/main/java/net/moonleay/gimble/mixin/NoBlockUpdates.java rename to src/main/java/net/moonleay/gimble/mixin/NoBlockUpdatesMixin.java index 6b42211..dab0588 100644 --- a/src/main/java/net/moonleay/gimble/mixin/NoBlockUpdates.java +++ b/src/main/java/net/moonleay/gimble/mixin/NoBlockUpdatesMixin.java @@ -13,7 +13,7 @@ import org.spongepowered.asm.mixin.injection.Inject; import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable; @Mixin(BlockItem.class) -public class NoBlockUpdates { +public class NoBlockUpdatesMixin { @Inject(method = "place(Lnet/minecraft/item/ItemPlacementContext;Lnet/minecraft/block/BlockState;)Z", at = @At("HEAD"), cancellable = true) private void func(ItemPlacementContext context, BlockState state, CallbackInfoReturnable cir) { diff --git a/src/main/java/net/moonleay/gimble/mixin/NoClipCameraFix.java b/src/main/java/net/moonleay/gimble/mixin/NoClipCameraFixMixin.java similarity index 95% rename from src/main/java/net/moonleay/gimble/mixin/NoClipCameraFix.java rename to src/main/java/net/moonleay/gimble/mixin/NoClipCameraFixMixin.java index 080acfb..3c06734 100644 --- a/src/main/java/net/moonleay/gimble/mixin/NoClipCameraFix.java +++ b/src/main/java/net/moonleay/gimble/mixin/NoClipCameraFixMixin.java @@ -9,7 +9,7 @@ import org.spongepowered.asm.mixin.injection.Inject; import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable; @Mixin(Camera.class) -public class NoClipCameraFix { +public class NoClipCameraFixMixin { @Inject(method = "clipToSpace", at = @At("HEAD"), cancellable = true) private void fixCameraInNoClip(double desiredCameraDistance, CallbackInfoReturnable cir) { diff --git a/src/main/resources/gimble.mixins.json b/src/main/resources/gimble.mixins.json index 70be15d..e01db58 100644 --- a/src/main/resources/gimble.mixins.json +++ b/src/main/resources/gimble.mixins.json @@ -5,12 +5,12 @@ "compatibilityLevel": "JAVA_17", "mixins": [ "ForcePlaceMixin", - "NoBlockUpdates", + "NoBlockUpdatesMixin", "NoClipMixin" ], "client": [ "HudMixin", - "NoClipCameraFix", + "NoClipCameraFixMixin", "NormalModeMixin", "ReplaceModeMixin" ],