Added bonus check to prevent loot populator from triggering while disabled.
This commit is contained in:
@@ -51,6 +51,10 @@ public class LootPopulator extends BlockPopulator {
|
||||
public void populate(@NotNull final World world,
|
||||
@NotNull final Random random,
|
||||
@NotNull final Chunk chunk) {
|
||||
if (!plugin.getConfigYml().getBool("loot.enabled")) {
|
||||
return;
|
||||
}
|
||||
|
||||
for (BlockState state : chunk.getTileEntities()) {
|
||||
Block block = state.getBlock();
|
||||
if (!(block.getState() instanceof Chest)) {
|
||||
|
||||
Reference in New Issue
Block a user