From 5c1c56e6918972daa03ba82cf2fe9312fb84b132 Mon Sep 17 00:00:00 2001 From: Drex Date: Mon, 18 Dec 2023 22:00:14 +0100 Subject: [PATCH] Update to 23w51b --- gradle.properties | 4 ++-- .../drex/vanish/mixin/interaction/VibrationSystemMixin.java | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/gradle.properties b/gradle.properties index 2ffc8a7..ce02ac4 100644 --- a/gradle.properties +++ b/gradle.properties @@ -2,8 +2,8 @@ org.gradle.jvmargs=-Xmx1G # Fabric Properties # check these on https://fabricmc.net/develop -minecraft_version=1.20.3-rc1 -loader_version=0.15.0 +minecraft_version=23w51b +loader_version=0.15.3 # Mod Properties mod_version=1.5.0 maven_group=me.drex diff --git a/src/main/java/me/drex/vanish/mixin/interaction/VibrationSystemMixin.java b/src/main/java/me/drex/vanish/mixin/interaction/VibrationSystemMixin.java index 35ff58d..c951dc2 100644 --- a/src/main/java/me/drex/vanish/mixin/interaction/VibrationSystemMixin.java +++ b/src/main/java/me/drex/vanish/mixin/interaction/VibrationSystemMixin.java @@ -2,6 +2,7 @@ import me.drex.vanish.api.VanishAPI; import me.drex.vanish.config.ConfigManager; +import net.minecraft.core.Holder; import net.minecraft.server.level.ServerLevel; import net.minecraft.world.entity.Entity; import net.minecraft.world.level.gameevent.GameEvent; @@ -16,7 +17,7 @@ public class VibrationSystemMixin { @Inject(method = "handleGameEvent", at = @At("HEAD"), cancellable = true) - private void vanish_preventEntityVibrations(ServerLevel serverLevel, GameEvent gameEvent, GameEvent.Context context, Vec3 vec3, CallbackInfoReturnable cir) { + private void vanish_preventEntityVibrations(ServerLevel serverLevel, Holder holder, GameEvent.Context context, Vec3 vec3, CallbackInfoReturnable cir) { Entity sourceEntity = context.sourceEntity(); if (sourceEntity != null && VanishAPI.isVanished(sourceEntity) && ConfigManager.vanish().interaction.vibrations) cir.setReturnValue(false);