Advertisement
Guest User

Untitled

a guest
Jun 17th, 2016
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.53 KB | None | 0 0
  1.     public void handle(final PacketUnloadCube packet) {
  2.         IThreadListener taskQueue = Minecraft.getMinecraft();
  3.         if (!taskQueue.isCallingFromMinecraftThread()) {
  4.             taskQueue.addScheduledTask(() -> handle(packet));
  5.             return;
  6.         }
  7.  
  8.         ICubicWorldClient worldClient = (ICubicWorldClient) Minecraft.getMinecraft().theWorld;
  9.         ClientCubeCache cubeCache = worldClient.getCubeCache();
  10.         long cubeAddress = packet.getCubeAddress();
  11.         cubeCache.unloadCube(
  12.                 getX(cubeAddress),
  13.                 getY(cubeAddress),
  14.                 getZ(cubeAddress)
  15.         );
  16.  
  17.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement