refactored pixelblock and fully utilizing taskchains

This commit is contained in:
2024-10-12 03:03:30 +02:00
parent 503c596616
commit 70c7059e43
10 changed files with 232 additions and 182 deletions
@@ -119,13 +119,14 @@ public class PixelBlockDatabase {
allPixelBlocks.getDouble("entryLocationZ")
);
PixelBlock block = new PixelBlock(
blockLocation,
UUID.fromString(allPixelBlocks.getString("owner")),
Main.plugin.getLogger().info("Pixelblock found ");
Main.pixelBlocks.add(PixelBlock.fromExisting(
UUID.fromString(allPixelBlocks.getString("uuid")),
Direction.valueOf(allPixelBlocks.getString("direction"))
);
block.setLastEntryLocation(entryLocation);
UUID.fromString(allPixelBlocks.getString("owner")),
blockLocation,
Direction.valueOf(allPixelBlocks.getString("direction")),
entryLocation
));
}
} catch (SQLException e) {
throw new RuntimeException("Failed loading PixelBlocks from the database", e);