Skip to content

Commit

Permalink
remove command: null check
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Jul 1, 2023
1 parent 33fe369 commit 54b5b30
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -111,7 +111,9 @@ else if (entity.isCitizensNPC()) {
Debug.echoError("Tried to remove already-removed entity.");
// Still remove() anyway to compensate for Spigot/NMS bugs
}
entity.remove();
if (entity.entity != null) {
entity.remove();
}
}
}
else {
Expand Down

0 comments on commit 54b5b30

Please sign in to comment.