Fix "Unable to determine descriptor" warnings by setting remap=false at some locations. (#1423)

* set remap=false for "Unable to determine descriptor" warnings

* remove suppressWarning annotation
This commit is contained in:
Crec0 authored and GitHub committed 2022-04-24 12:20:39 +02:00
1 parent c1141ddede
commit 8346199281
6 files changed
+9 -14

No files matched your search

@@ -13,8 +13,7 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
public class ReloadCommand_reloadAppsMixin {
//method_13530(Lcom/mojang/brigadier/context/CommandContext;)I
// internal of register.
@SuppressWarnings("UnresolvedMixinReference")
@Inject(method = "method_13530", at = @At("TAIL"))
@Inject(method = "method_13530", at = @At("TAIL"), remap = false)
private static void onReload(CommandContext<CommandSourceStack> context, CallbackInfoReturnable<Integer> cir)
{
// can't fetch here the reference to the server