21w18a
This commit is contained in:
1 parent
7780a3276d
commit
dfa826bb24
2 files changed
+7
-6
No files matched your search
@@ -10,13 +10,14 @@ import org.spongepowered.asm.mixin.injection.Redirect;
|
||||
@Mixin(BiomeArray.class)
|
||||
public class BiomeArray_cleanLogsMixin
|
||||
{
|
||||
// this changed in 21w18a - maybe its not needed anymore, please check
|
||||
@SuppressWarnings("UnresolvedMixinReference")
|
||||
@Redirect(method = "<init>(Lnet/minecraft/util/collection/IndexedIterable;Lnet/minecraft/world/HeightLimitView;[I)V", at = @At(
|
||||
value = "INVOKE",
|
||||
target = "Lorg/apache/logging/log4j/Logger;warn(Ljava/lang/String;Ljava/lang/Object;)V")
|
||||
target = "Lorg/apache/logging/log4j/Logger;warn(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V")
|
||||
)
|
||||
private void skipLog(Logger logger, String message, Object p0)
|
||||
private void skipLog(Logger logger, String message, Object p0, Object p1)
|
||||
{
|
||||
if (!CarpetSettings.cleanLogs) logger.warn(message, p0);
|
||||
if (!CarpetSettings.cleanLogs) logger.warn(message, p0, p1);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user