Skip to content

Commit

Permalink
PR notes
Browse files Browse the repository at this point in the history
  • Loading branch information
me4502 committed Jun 1, 2024
1 parent b6b7ac0 commit cf27d60
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@

import com.sk89q.worldedit.WorldEdit;
import com.sk89q.worldedit.internal.block.BlockStateIdAccess;
import com.sk89q.worldedit.internal.util.LogManagerCompat;
import com.sk89q.worldedit.world.block.BlockState;
import com.sk89q.worldedit.world.block.BlockType;
import com.sk89q.worldedit.world.registry.BlockRegistry;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,17 +61,14 @@ public void init() {
try {
if (event instanceof RecursiveDirectoryWatcher.FileCreatedEvent) {
schematics.add(event.path());
LOGGER.debug("New Schematic found: " + event.path());
} else if (event instanceof RecursiveDirectoryWatcher.FileDeletedEvent) {
schematics.remove(event.path());
LOGGER.debug("Schematic deleted: " + event.path());
}
} finally {
lock.writeLock().unlock();
}
if (event instanceof RecursiveDirectoryWatcher.FileCreatedEvent) {
LOGGER.debug("New Schematic found: " + event.path());
} else if (event instanceof RecursiveDirectoryWatcher.FileDeletedEvent) {
LOGGER.debug("Schematic deleted: " + event.path());
}
});
}

Expand Down

0 comments on commit cf27d60

Please sign in to comment.