Fixed another console spam
This commit is contained in:
parent
e8deffdd57
commit
de7f344eed
2 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue