1.17 update
This commit is contained in:
1 parent
8f2c935fe6
commit
587e04c8db
1 file changed
+4
-4
@@ -10,12 +10,12 @@ import org.spongepowered.asm.mixin.injection.Redirect;
|
||||
@Mixin(BiomeArray.class)
|
||||
public class BiomeArray_cleanLogsMixin
|
||||
{
|
||||
@Redirect(method = "<init>(Lnet/minecraft/util/collection/IndexedIterable;[I)V", at = @At(
|
||||
@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;)V")
|
||||
target = "Lorg/apache/logging/log4j/Logger;warn(Ljava/lang/String;Ljava/lang/Object;)V")
|
||||
)
|
||||
private void skipLog(Logger logger, String message)
|
||||
private void skipLog(Logger logger, String message, Object p0)
|
||||
{
|
||||
if (!CarpetSettings.cleanLogs) logger.warn(message);
|
||||
if (!CarpetSettings.cleanLogs) logger.warn(message, p0);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user