Add backwards compatibility

This commit is contained in:
Daniel 2017-05-09 08:02:52 +02:00 committed by GitHub
parent c855faa14e
commit 7bd71fe6c2

View file

@ -261,4 +261,10 @@ public class GT_Pollution {
if(dataMap==null || dataMap.get(ch.getChunkCoordIntPair())==null) return 0; if(dataMap==null || dataMap.get(ch.getChunkCoordIntPair())==null) return 0;
return dataMap.get(ch.getChunkCoordIntPair())[GTPOLLUTION]; 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);
}
} }