From 0a928887eda8a9a3961d9b409e8ed7b2b1336995 Mon Sep 17 00:00:00 2001 From: Daniel Date: Tue, 9 May 2017 08:08:47 +0200 Subject: [PATCH] Cleanup and some commentary --- src/main/java/gregtech/common/GT_Pollution.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/gregtech/common/GT_Pollution.java b/src/main/java/gregtech/common/GT_Pollution.java index 95228ee9..78040bdb 100644 --- a/src/main/java/gregtech/common/GT_Pollution.java +++ b/src/main/java/gregtech/common/GT_Pollution.java @@ -231,7 +231,6 @@ public class GT_Pollution { } public static void addPollution(IGregTechTileEntity te, int aPollution){ - System.out.println(te.getWorld().provider.dimensionId+" "+te.getXCoord()+" "+te.getZCoord()); addPollution(te.getWorld().getChunkFromBlockCoords(te.getXCoord(),te.getZCoord()), aPollution); } @@ -263,8 +262,10 @@ public class GT_Pollution { } //Add compatibility with old code - @Deprecated + @Deprecated /*Don't use it... too weird way of passing position*/ public static void addPollution(World aWorld, ChunkPosition aPos, int aPollution){ - addPollution(aWorld.getChunkFromChunkCoords(aPos.chunkPosX,aPos.chunkPosZ),aPollution); + //The abuse of ChunkPosition to store block position and dim... + //is just bad expacially when that is both used to store ChunkPos and BlockPos depeending on context + addPollution(aWorld.getChunkFromBlockCoords(aPos.chunkPosX,aPos.chunkPosZ),aPollution); } }