Skip to content

Commit acab6e3

Browse files
committed
Cleaning up warnings n stuff - ignoring the "unused method" ones.
1 parent ae8e5f9 commit acab6e3

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/main/java/dev/arctic/interactivemenuapi/objects/Element.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,7 @@ protected void initializeEntities() {
4040
interaction.setMetadata("InteractiveMenu", new FixedMetadataValue(parentMenu.getPlugin(), this));
4141
});
4242

43-
this.textDisplayEntity = location.getWorld().spawn(location, TextDisplay.class, textDisplay -> {
44-
textDisplay.setPersistent(false);
45-
});
43+
this.textDisplayEntity = location.getWorld().spawn(location, TextDisplay.class, textDisplay -> textDisplay.setPersistent(false));
4644
}
4745

4846
public void updateLocation(Location divisionLocation) {

src/main/java/dev/arctic/interactivemenuapi/objects/Menu.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
import org.bukkit.plugin.Plugin;
1010
import org.bukkit.scheduler.BukkitRunnable;
1111
import org.bukkit.scheduler.BukkitTask;
12-
import org.bukkit.util.Vector;
1312

1413
import java.util.List;
1514
import java.util.UUID;
1615
import java.util.concurrent.CopyOnWriteArrayList;
16+
import java.util.logging.Level;
1717

1818
@Getter
1919
@Setter
@@ -95,6 +95,7 @@ public void cleanup() {
9595
try {
9696
anchorEntity.remove();
9797
} catch (Exception e) {
98+
getPlugin().getLogger().log(Level.WARNING, "Failed to remove anchor entity for menu " + menuUUID);
9899
}
99100
if (updateTask != null) {
100101
updateTask.cancel();

0 commit comments

Comments
 (0)