Skip to content

Commit

Permalink
Made it so it doesn't clear players (idk why praxi does that)
Browse files Browse the repository at this point in the history
  • Loading branch information
Devlrxxh committed Feb 26, 2024
1 parent b720ebf commit 1287ccc
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/main/java/me/lrxh/practice/essentials/Essentials.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,13 @@ public void teleportToSpawn(Player player) {
}

public void clearEntities(World world) {
int removed = 0;

for (Entity entity : world.getEntities()) {
if (!(entity.getType() == EntityType.PLAYER)) {
continue;
}

removed++;
entity.remove();
}

}

public int clearEntities(World world, EntityType... excluded) {
Expand Down

0 comments on commit 1287ccc

Please sign in to comment.