Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void handle(final PacketUnloadCube packet) {
- IThreadListener taskQueue = Minecraft.getMinecraft();
- if (!taskQueue.isCallingFromMinecraftThread()) {
- taskQueue.addScheduledTask(() -> handle(packet));
- return;
- }
- ICubicWorldClient worldClient = (ICubicWorldClient) Minecraft.getMinecraft().theWorld;
- ClientCubeCache cubeCache = worldClient.getCubeCache();
- long cubeAddress = packet.getCubeAddress();
- cubeCache.unloadCube(
- getX(cubeAddress),
- getY(cubeAddress),
- getZ(cubeAddress)
- );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement