Skip to content

Commit

Permalink
Add Vex changes
Browse files Browse the repository at this point in the history
  • Loading branch information
DoggySazHi committed Jan 15, 2025
1 parent f7b0cf4 commit f7a0c22
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package net.gensokyoreimagined.gensoujankmod.mixin.core;

import net.minecraft.world.entity.Entity;
import net.minecraft.world.entity.monster.Vex;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.*;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;

@Mixin(Vex.class)
public class MixinVex {
@Inject(method = "tick", at = @At(value = "INVOKE", target = "Lnet/minecraft/world/entity/monster/Monster;tick()V"))
private void tick(CallbackInfo ci) {
((Entity) (Object) this).noPhysics = false;
}

@Inject(method = "populateDefaultEquipmentSlots", at = @At("HEAD"), cancellable = true)
private void populateDefaultEquipmentSlots(CallbackInfo ci) {
ci.cancel();
}
}
3 changes: 2 additions & 1 deletion GensouJankMod/src/main/resources/mixins.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"target": "@env(DEFAULT)",
"compatibilityLevel": "JAVA_17",
"server": [
"MixinServerPlayer"
"MixinServerPlayer",
"MixinVex"
]
}

0 comments on commit f7a0c22

Please sign in to comment.