From 7bd71fe6c236fbc337255bdde08e39aa71971a95 Mon Sep 17 00:00:00 2001 From: Daniel Date: Tue, 9 May 2017 08:02:52 +0200 Subject: [PATCH] Add backwards compatibility --- src/main/java/gregtech/common/GT_Pollution.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/gregtech/common/GT_Pollution.java b/src/main/java/gregtech/common/GT_Pollution.java index 4b9e8a32..0ce0aadb 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]; } + + //Add compatibility with old code + @Deprecated + public static void addPollution(World aWorld, ChunkPosition aPos, int aPollution){ + addPollution(aWorld.getChunkFromChunkCoords(aPos.chunkPosX,aPos.chunkPosZ),aPollution); + } }