refactored hitbox and placeholders

This commit is contained in:
2024-10-12 01:00:55 +02:00
parent ab58b291c8
commit 503c596616
6 changed files with 162 additions and 82 deletions
@@ -79,7 +79,7 @@ public class PixelBlockDatabase {
this.insertOrReplacePixelBlock.setDouble(5, pixelBlock.getPixelBlockLocation().getY());
this.insertOrReplacePixelBlock.setDouble(6, pixelBlock.getPixelBlockLocation().getZ());
if (pixelBlock.getLastEntryLocation() != null) {
if (pixelBlock.hasLastEntryLocation()) {
this.insertOrReplacePixelBlock.setString(7, pixelBlock.getLastEntryLocation().getWorld().getName());
this.insertOrReplacePixelBlock.setDouble(8, pixelBlock.getLastEntryLocation().getX());
this.insertOrReplacePixelBlock.setDouble(9, pixelBlock.getLastEntryLocation().getY());