refactored pixelblock and fully utilizing taskchains
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user