From de7f344eed2aaad226b24305ae12b566ac99c862 Mon Sep 17 00:00:00 2001 From: LemADEC Date: Sat, 29 Aug 2015 14:30:45 +0200 Subject: [PATCH] Fixed another console spam --- src/main/java/cr0s/warpdrive/CloakChunkWatcher.java | 1 - src/main/java/cr0s/warpdrive/data/CloakManager.java | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/cr0s/warpdrive/CloakChunkWatcher.java b/src/main/java/cr0s/warpdrive/CloakChunkWatcher.java index d807f5c9..c8739bb9 100644 --- a/src/main/java/cr0s/warpdrive/CloakChunkWatcher.java +++ b/src/main/java/cr0s/warpdrive/CloakChunkWatcher.java @@ -30,7 +30,6 @@ public class CloakChunkWatcher { public void onEntityJoinWorld(EntityJoinWorldEvent event){ if (!event.world.isRemote) { if (event.entity instanceof EntityPlayerMP) { - WarpDrive.logger.info("onEntityJoinWorld " + event.entity); WarpDrive.cloaks.onEntityJoinWorld((EntityPlayerMP)event.entity); } } diff --git a/src/main/java/cr0s/warpdrive/data/CloakManager.java b/src/main/java/cr0s/warpdrive/data/CloakManager.java index 16a9a211..b2610d18 100644 --- a/src/main/java/cr0s/warpdrive/data/CloakManager.java +++ b/src/main/java/cr0s/warpdrive/data/CloakManager.java @@ -13,6 +13,7 @@ import net.minecraft.util.AxisAlignedBB; import net.minecraft.world.World; import net.minecraft.world.chunk.Chunk; import cr0s.warpdrive.WarpDrive; +import cr0s.warpdrive.config.WarpDriveConfig; import cr0s.warpdrive.network.PacketHandler; /** @@ -62,6 +63,7 @@ public class CloakManager { } public boolean onEntityJoinWorld(EntityPlayerMP player) { + if (WarpDriveConfig.LOGGING_CLOAKING) { WarpDrive.logger.info("onEntityJoinWorld " + player); } for (CloakedArea area : this.cloaks) { // skip other dimensions if (area.dimensionId != player.worldObj.provider.dimensionId) {