Skip to content

Commit

Permalink
mucked around wth the targeting of MixinCastingHarness.playSoundWisp
Browse files Browse the repository at this point in the history
  • Loading branch information
Talia-12 committed Nov 22, 2022
1 parent 73eccec commit 996f04d
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,12 @@ private boolean updateWithPatternWisp (List<OperatorSideEffect> sideEffects, Obj
return sideEffects.add((OperatorSideEffect) o);
}

@Redirect(method = "executeIotas", at = @At(value = "INVOKE",
target = "Lnet/minecraft/server/level/ServerLevel;playSound(Lnet/minecraft/world/entity/player/Player;DDDLnet/minecraft/sounds/SoundEvent;Lnet/minecraft/sounds/SoundSource;FF)V"),
@Redirect(method = "executeIotas",
at = @At(
value = "INVOKE",
target = "Lnet/minecraft/server/level/ServerLevel;playSound(Lnet/minecraft/world/entity/player/Player;DDDLnet/minecraft/sounds/SoundEvent;Lnet/minecraft/sounds/SoundSource;FF)V",
remap = true
),
remap = false)
private void playSoundWisp (ServerLevel level, Player player, double x, double y, double z, SoundEvent soundEvent, SoundSource soundSource, float v, float p) {
CastingContext ctx = harness.getCtx();
Expand Down

0 comments on commit 996f04d

Please sign in to comment.