From 8b1e6d55bef436f82bc4ac8bc21244db68eb5452 Mon Sep 17 00:00:00 2001 From: Daniel Date: Tue, 9 May 2017 08:02:52 +0200 Subject: [PATCH] 7bd71fe --- src/main/java/gregtech/common/GT_Pollution.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/java/gregtech/common/GT_Pollution.java b/src/main/java/gregtech/common/GT_Pollution.java index 23dd3ad0..95228ee9 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); + } +}