Skip to content

Commit 4453929

Browse files
committed
Fix minor static analysis issues
1 parent f91f3e3 commit 4453929

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/world/bentobox/aoneblock/listeners/HoloListener.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ protected void setUp(@NonNull Island island, @NonNull OneBlockIslands is, boolea
7272
return;
7373
}
7474

75-
if (newIsland) {
75+
if (newIsland && island.getOwner() != null) {
7676
String startingText = User.getInstance(island.getOwner())
7777
.getTranslation("aoneblock.island.starting-hologram");
7878
is.setHologram(startingText == null ? "" : startingText);
@@ -150,7 +150,7 @@ private void createHologram(Location pos, String text) {
150150
* @param island the island whose hologram should be deleted
151151
*/
152152
private void removeHologramAt(@NonNull Island island) {
153-
if (island.getWorld() == null || island.getCenter() == null) {
153+
if (island.getWorld() == null) {
154154
return;
155155
}
156156
cleanupHologram(getHologramLocation(island));

0 commit comments

Comments
 (0)