cleaner
This commit is contained in:
1 parent
8be832a74c
commit
365892b9ca
2 files changed
+21
-2
No files matched your search
@@ -0,0 +1,19 @@
|
|||||||
|
package carpet.mixins;
|
||||||
|
|
||||||
|
import carpet.CarpetSettings;
|
||||||
|
import net.minecraft.world.gen.decorator.BaseRangeDecorator;
|
||||||
|
import org.apache.logging.log4j.Logger;
|
||||||
|
import org.spongepowered.asm.mixin.Mixin;
|
||||||
|
import org.spongepowered.asm.mixin.injection.At;
|
||||||
|
import org.spongepowered.asm.mixin.injection.Redirect;
|
||||||
|
|
||||||
|
@Mixin(BaseRangeDecorator.class)
|
||||||
|
public class BaseRangeDecorator_cleanLogsMixin {
|
||||||
|
@Redirect(method = "getY(Lnet/minecraft/world/gen/decorator/DecoratorContext;Ljava/util/Random;Lnet/minecraft/world/gen/decorator/RangeDecoratorConfig;I)I",
|
||||||
|
at = @At(value = "INVOKE", target = "Lorg/apache/logging/log4j/Logger;warn(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V")
|
||||||
|
)
|
||||||
|
private void skipLogs(Logger logger, String message, Object p0, Object p1, Object p2)
|
||||||
|
{
|
||||||
|
if (!CarpetSettings.cleanLogs) logger.warn(message, p0, p1, p2);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -197,8 +197,8 @@
|
|||||||
"PlayerEntity_creativeNoClipMixin",
|
"PlayerEntity_creativeNoClipMixin",
|
||||||
"PistonBlockEntity_playerHandlingMixin",
|
"PistonBlockEntity_playerHandlingMixin",
|
||||||
"BlockItem_creativeNoClipMixin",
|
"BlockItem_creativeNoClipMixin",
|
||||||
"LivingEntity_creativeFlyMixin"
|
"LivingEntity_creativeFlyMixin",
|
||||||
|
"BaseRangeDecorator_cleanLogsMixin"
|
||||||
],
|
],
|
||||||
"client": [
|
"client": [
|
||||||
"RenderTickCounter_tickSpeedMixin",
|
"RenderTickCounter_tickSpeedMixin",
|
||||||
|
|||||||
Reference in new issue
Block a user