Skip to content

Commit

Permalink
Allow dropping tool if no entity is selected
Browse files Browse the repository at this point in the history
  • Loading branch information
56738 committed Oct 4, 2024
1 parent 580e299 commit 3c8059d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -249,10 +249,10 @@ public void onDrop(PlayerDropItemEvent event) {
SessionImpl session = manager.getSession(player);
if (session != null) {
ElementSelectionNode node = session.findNode(ElementSelectionNode.class);
if (node != null) {
if (node != null && node != session.getNode()) {
session.returnToNode(node);
event.setCancelled(true);
}
event.setCancelled(true);
}
}

Expand Down

0 comments on commit 3c8059d

Please sign in to comment.