File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
src/main/java/dev/arctic/interactivemenuapi/objects Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff 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 ) {
Original file line number Diff line number Diff line change 99import org .bukkit .plugin .Plugin ;
1010import org .bukkit .scheduler .BukkitRunnable ;
1111import org .bukkit .scheduler .BukkitTask ;
12- import org .bukkit .util .Vector ;
1312
1413import java .util .List ;
1514import java .util .UUID ;
1615import 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 ();
You can’t perform that action at this time.
0 commit comments