properly do black/whitelist feature based on feedback

This commit is contained in:
hyperdefined
2026-01-26 15:23:20 -05:00
parent 9755ac2035
commit 58a74a0cdd
22 changed files with 72 additions and 25 deletions

View File

@@ -50,7 +50,7 @@ public class GenerateLoot implements Listener {
return;
}
Location lootLocation = event.getLootContext().getLocation();
if (toolStats.config.getStringList("blacklist-worlds").contains(lootLocation.getWorld().getName())) {
if (!toolStats.configTools.checkWorld(lootLocation.getWorld().getName())) {
return;
}
Chunk lootChunk = lootLocation.getChunk();