From d115aa7ebf0094595d5e3bbf95afdf0c702f173d Mon Sep 17 00:00:00 2001 From: Technus Date: Wed, 15 Mar 2017 17:16:00 +0100 Subject: [PATCH] Expand D1 Level Logging of ore generators. --- .../gregtech/common/GT_Worldgen_GT_Ore_Layer.java | 12 +++++++++++- .../common/GT_Worldgen_GT_Ore_SmallPieces.java | 11 +++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/src/main/java/gregtech/common/GT_Worldgen_GT_Ore_Layer.java b/src/main/java/gregtech/common/GT_Worldgen_GT_Ore_Layer.java index da8fca40..456c736d 100644 --- a/src/main/java/gregtech/common/GT_Worldgen_GT_Ore_Layer.java +++ b/src/main/java/gregtech/common/GT_Worldgen_GT_Ore_Layer.java @@ -6,6 +6,7 @@ import gregtech.api.enums.Materials; import gregtech.api.world.GT_Worldgen; import gregtech.common.blocks.GT_TileEntity_Ores; import gregtech.loaders.misc.GT_Achievements; +import net.minecraft.item.ItemStack; import net.minecraft.util.MathHelper; import net.minecraft.world.World; import net.minecraft.world.chunk.IChunkProvider; @@ -96,7 +97,16 @@ public class GT_Worldgen_GT_Ore_Layer } } if (GT_Values.D1) { - System.out.println("Generated Orevein: " + this.mWorldGenName); + System.out.println( + "Generated Orevein:" + this.mWorldGenName + + " @ dim="+aDimensionType+ + " chunkX="+aChunkX+ + " chunkZ="+aChunkZ+ + " 1st="+new ItemStack(GregTech_API.sBlockOres1,1,mPrimaryMeta).getDisplayName()+ + " 2nd="+new ItemStack(GregTech_API.sBlockOres1,1,mPrimaryMeta).getDisplayName()+ + " 3rd="+new ItemStack(GregTech_API.sBlockOres1,1,mPrimaryMeta).getDisplayName()+ + " 4th="+new ItemStack(GregTech_API.sBlockOres1,1,mPrimaryMeta).getDisplayName() + ); } return true; } diff --git a/src/main/java/gregtech/common/GT_Worldgen_GT_Ore_SmallPieces.java b/src/main/java/gregtech/common/GT_Worldgen_GT_Ore_SmallPieces.java index eb1e01c4..4db6580c 100644 --- a/src/main/java/gregtech/common/GT_Worldgen_GT_Ore_SmallPieces.java +++ b/src/main/java/gregtech/common/GT_Worldgen_GT_Ore_SmallPieces.java @@ -1,9 +1,11 @@ package gregtech.common; import gregtech.api.GregTech_API; +import gregtech.api.enums.GT_Values; import gregtech.api.enums.Materials; import gregtech.api.world.GT_Worldgen; import gregtech.common.blocks.GT_TileEntity_Ores; +import net.minecraft.item.ItemStack; import net.minecraft.world.World; import net.minecraft.world.chunk.IChunkProvider; @@ -45,6 +47,15 @@ public class GT_Worldgen_GT_Ore_SmallPieces int i = 0; for (int j = Math.max(1, this.mAmount / 2 + aRandom.nextInt(this.mAmount) / 2); i < j; i++) { GT_TileEntity_Ores.setOreBlock(aWorld, aChunkX + aRandom.nextInt(16), this.mMinY + aRandom.nextInt(Math.max(1, this.mMaxY - this.mMinY)), aChunkZ + aRandom.nextInt(16), this.mMeta, true); + if(GT_Values.D1){ + System.out.println( + "Small Ore:" + this.mWorldGenName + + " @ dim="+aDimensionType+ + " chunkX="+aChunkX+ + " chunkZ="+aChunkZ+ + " ore="+new ItemStack(GregTech_API.sBlockOres1,1,mMeta).getDisplayName() + ); + } } } return true;