aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/gregtech/common/GT_Pollution.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main/java/gregtech/common/GT_Pollution.java b/src/main/java/gregtech/common/GT_Pollution.java
index 23dd3ad028..95228ee9f6 100644
--- a/src/main/java/gregtech/common/GT_Pollution.java
+++ b/src/main/java/gregtech/common/GT_Pollution.java
@@ -261,4 +261,10 @@ public class GT_Pollution {
if(dataMap==null || dataMap.get(ch.getChunkCoordIntPair())==null) return 0;
return dataMap.get(ch.getChunkCoordIntPair())[GTPOLLUTION];
}
-} \ No newline at end of file
+
+ //Add compatibility with old code
+ @Deprecated
+ public static void addPollution(World aWorld, ChunkPosition aPos, int aPollution){
+ addPollution(aWorld.getChunkFromChunkCoords(aPos.chunkPosX,aPos.chunkPosZ),aPollution);
+ }
+}