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:
1 parent
c1141ddede
commit
8346199281
6 files changed
+9
-14
No files matched your search
@@ -11,8 +11,7 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
|
||||
@Mixin(PerfCommand.class)
|
||||
public class PerfCommand_permissionMixin
|
||||
{
|
||||
@SuppressWarnings("UnresolvedMixinReference")
|
||||
@Inject(method = "method_37340", at = @At("HEAD"), cancellable = true)
|
||||
@Inject(method = "method_37340", at = @At("HEAD"), cancellable = true, remap = false)
|
||||
private static void canRun(CommandSourceStack source, CallbackInfoReturnable<Boolean> cir)
|
||||
{
|
||||
cir.setReturnValue(source.hasPermission(CarpetSettings.perfPermissionLevel));
|
||||
|
||||
Reference in new issue
Block a user