From 9bd9f76b9ea166aea2ec20c45850fbd0e64df22d Mon Sep 17 00:00:00 2001 From: cmastudios Date: Wed, 23 Apr 2014 21:59:42 -0500 Subject: [PATCH] Some skulls don't have owners Bukkit 1.7.9 functionality change now throws an exception rather than returning null. Closes #768 --- .../main/java/com/tommytony/war/mapper/ZoneVolumeMapper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/war/src/main/java/com/tommytony/war/mapper/ZoneVolumeMapper.java b/war/src/main/java/com/tommytony/war/mapper/ZoneVolumeMapper.java index e8389a7..78e71d8 100644 --- a/war/src/main/java/com/tommytony/war/mapper/ZoneVolumeMapper.java +++ b/war/src/main/java/com/tommytony/war/mapper/ZoneVolumeMapper.java @@ -370,7 +370,7 @@ public class ZoneVolumeMapper { dataStmt.setString(6, ((Jukebox) block.getState()).getPlaying().toString()); } else if (state instanceof Skull) { dataStmt.setString(6, String.format("%s\n%s\n%s", - ((Skull) block.getState()).getOwner(), + ((Skull) block.getState()).hasOwner() ? ((Skull) block.getState()).getOwner() : "", ((Skull) block.getState()).getSkullType().toString(), ((Skull) block.getState()).getRotation().toString())); } else if (state instanceof CommandBlock) {