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

@@ -110,8 +110,7 @@ public abstract class ChunkMap_scarpetChunkCreationMixin implements ThreadedAnvi
// in protoChunkToFullChunk
// fancier version of the one below, ensuring that the event is triggered when the chunk is actually loaded.
@SuppressWarnings("UnresolvedMixinReference")
@Inject(method = "method_20460", at = @At("HEAD"))
@Inject(method = "method_20460", at = @At("HEAD"), remap = false)
private void onChunkGeneratedStart(ChunkHolder chunkHolder, Either<ChunkAccess, ChunkLoadingFailure> chunk, CallbackInfoReturnable<CompletableFuture<Either<ChunkAccess, ChunkLoadingFailure>>> cir)
{
if (CHUNK_GENERATED.isNeeded() || CHUNK_LOADED.isNeeded())
@@ -124,8 +123,7 @@ public abstract class ChunkMap_scarpetChunkCreationMixin implements ThreadedAnvi
}
}
@SuppressWarnings("UnresolvedMixinReference")
@Inject(method = "method_20460", at = @At("RETURN"))
@Inject(method = "method_20460", at = @At("RETURN"), remap = false)
private void onChunkGeneratedEnd(ChunkHolder chunkHolder, Either<ChunkAccess, ChunkLoadingFailure> chunk, CallbackInfoReturnable<CompletableFuture<Either<ChunkAccess, ChunkLoadingFailure>>> cir)
{
Boolean localGenerated= generated.get();