fxied player_interacts_with_blocks not triggering
This commit is contained in:
1 parent
2b1bb9652b
commit
e4c090c355
1 file changed
+3
-2
@@ -53,8 +53,9 @@ public class ServerPlayerGameMode_scarpetEventsMixin implements ServerPlayerInte
|
||||
}
|
||||
|
||||
@Inject(method = "useItemOn", at = @At(
|
||||
value = "RETURN",
|
||||
ordinal = 2
|
||||
value = "INVOKE",
|
||||
target = "Lnet/minecraft/advancements/critereon/ItemInteractWithBlockTrigger;trigger(Lnet/minecraft/server/level/ServerPlayer;Lnet/minecraft/core/BlockPos;Lnet/minecraft/world/item/ItemStack;)V",
|
||||
shift = At.Shift.BEFORE
|
||||
))
|
||||
private void onBlockActivated(ServerPlayer serverPlayerEntity, Level world, ItemStack stack, InteractionHand hand, BlockHitResult hitResult, CallbackInfoReturnable<InteractionResult> cir)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user