mirror of
https://codeberg.org/moonleay/Gimble.git
synced 2024-11-22 14:52:50 +00:00
chore: renamed mixins to always have Mixin at the end
parent
8930d64fd0
commit
5bd5e48f0d
3 changed files with 4 additions and 4 deletions
|
@ -13,7 +13,7 @@ import org.spongepowered.asm.mixin.injection.Inject;
|
||||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
|
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
|
||||||
|
|
||||||
@Mixin(BlockItem.class)
|
@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)
|
@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<Boolean> cir) {
|
private void func(ItemPlacementContext context, BlockState state, CallbackInfoReturnable<Boolean> cir) {
|
|
@ -9,7 +9,7 @@ import org.spongepowered.asm.mixin.injection.Inject;
|
||||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
|
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
|
||||||
|
|
||||||
@Mixin(Camera.class)
|
@Mixin(Camera.class)
|
||||||
public class NoClipCameraFix {
|
public class NoClipCameraFixMixin {
|
||||||
|
|
||||||
@Inject(method = "clipToSpace", at = @At("HEAD"), cancellable = true)
|
@Inject(method = "clipToSpace", at = @At("HEAD"), cancellable = true)
|
||||||
private void fixCameraInNoClip(double desiredCameraDistance, CallbackInfoReturnable<Double> cir) {
|
private void fixCameraInNoClip(double desiredCameraDistance, CallbackInfoReturnable<Double> cir) {
|
|
@ -5,12 +5,12 @@
|
||||||
"compatibilityLevel": "JAVA_17",
|
"compatibilityLevel": "JAVA_17",
|
||||||
"mixins": [
|
"mixins": [
|
||||||
"ForcePlaceMixin",
|
"ForcePlaceMixin",
|
||||||
"NoBlockUpdates",
|
"NoBlockUpdatesMixin",
|
||||||
"NoClipMixin"
|
"NoClipMixin"
|
||||||
],
|
],
|
||||||
"client": [
|
"client": [
|
||||||
"HudMixin",
|
"HudMixin",
|
||||||
"NoClipCameraFix",
|
"NoClipCameraFixMixin",
|
||||||
"NormalModeMixin",
|
"NormalModeMixin",
|
||||||
"ReplaceModeMixin"
|
"ReplaceModeMixin"
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in a new issue