Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //- put in pathfinder file
- //- change all uses of getBlockId and getBlockMetadata that use the world reference to these interface functions
- private synchronized int getBlockId(int x, int y, int z) {
- if (!ModLoader.getMinecraftInstance().theWorld.checkChunksExist(x, 0, z , x, 128, z)) return 10;
- return ModLoader.getMinecraftInstance().theWorld.getBlockId(x, y, z);
- }
- private synchronized int getBlockMetadata(int x, int y, int z) {
- if (!ModLoader.getMinecraftInstance().theWorld.checkChunksExist(x, 0, z , x, 128, z)) return 0;
- return ModLoader.getMinecraftInstance().theWorld.getBlockMetadata(x, y, z);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement