Skip to content

Commit

Permalink
Update to 23w51b
Browse files Browse the repository at this point in the history
  • Loading branch information
DrexHD committed Dec 18, 2023
1 parent a2bb456 commit 5c1c56e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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<Boolean> cir) {
private void vanish_preventEntityVibrations(ServerLevel serverLevel, Holder<GameEvent> holder, GameEvent.Context context, Vec3 vec3, CallbackInfoReturnable<Boolean> cir) {
Entity sourceEntity = context.sourceEntity();
if (sourceEntity != null && VanishAPI.isVanished(sourceEntity) && ConfigManager.vanish().interaction.vibrations)
cir.setReturnValue(false);
Expand Down

0 comments on commit 5c1c56e

Please sign in to comment.