diff --git a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/support/obtaining/LootPopulator.java b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/support/obtaining/LootPopulator.java index c7c0e88b..96206f93 100644 --- a/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/support/obtaining/LootPopulator.java +++ b/eco-core/core-plugin/src/main/java/com/willfp/ecoenchants/enchantments/support/obtaining/LootPopulator.java @@ -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)) {