Add backwards compatibility
This commit is contained in:
parent
c855faa14e
commit
7bd71fe6c2
1 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue