Advertisement
Corosus

Untitled

Oct 13th, 2011
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.64 KB | None | 0 0
  1. //- put in pathfinder file
  2. //- change all uses of getBlockId and getBlockMetadata that use the world reference to these interface functions
  3.  
  4. private synchronized int getBlockId(int x, int y, int z) {
  5.         if (!ModLoader.getMinecraftInstance().theWorld.checkChunksExist(x, 0, z , x, 128, z)) return 10;
  6.         return ModLoader.getMinecraftInstance().theWorld.getBlockId(x, y, z);
  7.     }
  8.    
  9.     private synchronized int getBlockMetadata(int x, int y, int z) {
  10.         if (!ModLoader.getMinecraftInstance().theWorld.checkChunksExist(x, 0, z , x, 128, z)) return 0;
  11.         return ModLoader.getMinecraftInstance().theWorld.getBlockMetadata(x, y, z);
  12.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement