Disable default worker production
This commit is contained in:
@@ -200,6 +200,9 @@ public final class NpcService {
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!plugin.getConfig().getBoolean("npc.worker.allow_default_production", false)) {
|
||||
return null;
|
||||
}
|
||||
Material material = Material.matchMaterial(plugin.getConfig().getString("npc.worker.produce_material", "BREAD"));
|
||||
int amount = plugin.getConfig().getInt("npc.worker.produce_amount", 2);
|
||||
return material == null || amount <= 0 ? null : new WorkerRecipe("default", "PRODUCE", material, amount, Map.of(), List.of(), true);
|
||||
|
||||
Reference in New Issue
Block a user