Skip to content

Commit

Permalink
Remove the chunk deletion for Slimefun.
Browse files Browse the repository at this point in the history
  • Loading branch information
tastybento committed Dec 24, 2023
1 parent b5ffcee commit f4868f7
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -330,10 +330,6 @@ private boolean isEnded(int chunkX) {

@SuppressWarnings("deprecation")
private CompletableFuture<Void> regenerateChunk(GameModeAddon gm, IslandDeletion di, World world, int chunkX, int chunkZ) {
// Notify Slimefun
plugin.getHooks().getHook("Slimefun")
.ifPresent(sf -> ((SlimefunHook) sf).clearAllBlockInfoAtChunk(world, chunkX, chunkZ, true));

CompletableFuture<Chunk> chunkFuture = PaperLib.getChunkAtAsync(world, chunkX, chunkZ);
CompletableFuture<Void> invFuture = chunkFuture.thenAccept(chunk ->
Arrays.stream(chunk.getTileEntities()).filter(InventoryHolder.class::isInstance)
Expand Down

0 comments on commit f4868f7

Please sign in to comment.