Some skulls don't have owners

Bukkit 1.7.9 functionality change now throws an exception rather
than returning null.

Closes #768
This commit is contained in:
cmastudios 2014-04-23 21:59:42 -05:00
parent 14054454af
commit 9bd9f76b9e

View File

@ -370,7 +370,7 @@ public class ZoneVolumeMapper {
dataStmt.setString(6, ((Jukebox) block.getState()).getPlaying().toString()); dataStmt.setString(6, ((Jukebox) block.getState()).getPlaying().toString());
} else if (state instanceof Skull) { } else if (state instanceof Skull) {
dataStmt.setString(6, String.format("%s\n%s\n%s", 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()).getSkullType().toString(),
((Skull) block.getState()).getRotation().toString())); ((Skull) block.getState()).getRotation().toString()));
} else if (state instanceof CommandBlock) { } else if (state instanceof CommandBlock) {