mirror of
https://github.com/taoneill/war.git
synced 2024-12-02 23:23:30 +01:00
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:
parent
14054454af
commit
9bd9f76b9e
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user