Skip to content

Commit

Permalink
Fix error on spigot servers
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonHorkles committed Nov 1, 2024
1 parent 88fb14a commit 9a382de
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions checksums.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"3.7.1": "192F4A25D138DF6D5765C4698B07BE3D",
"3.7.0": "9958F067E96DB53627967BDBE165C714",
"3.6.1": "9ED575EA17AC470E5BA9F32868AB5484",
"3.6.0": "E5EC1981958AFE0A3535E3CCAA3A7E07"
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>net.silverstonemc</groupId>
<artifactId>EntityClearer</artifactId>
<version>3.7.0</version>
<version>3.7.1</version>

<properties>
<maven.compiler.source>17</maven.compiler.source>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public Object[] isNotEnough(World world, String worldConfigName) {
// Determine if there are enough players either server-wide or world-wide depending on the settings
boolean notEnoughPlayers;
if (isServerWide) notEnoughPlayers = Bukkit.getOnlinePlayers().size() < minPlayers;
else notEnoughPlayers = world.getPlayerCount() < minPlayers;
else notEnoughPlayers = world.getPlayers().size() < minPlayers;

return new Object[]{notEnoughPlayers, isServerWide ? "server" : "world"};
}
Expand Down

0 comments on commit 9a382de

Please sign in to comment.