mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-27 19:24:44 +02:00
Move validation to proper location
This commit is contained in:
@ -184,11 +184,6 @@ public class TamingManager extends SkillManager {
|
||||
|
||||
int amount = Config.getInstance().getTamingCOTWAmount(type);
|
||||
|
||||
// TODO: Validate in config instead
|
||||
if (amount <= 0) {
|
||||
amount = 1;
|
||||
}
|
||||
|
||||
for (int i = 0; i < amount; i++) {
|
||||
LivingEntity entity = (LivingEntity) player.getWorld().spawnEntity(player.getLocation(), type);
|
||||
|
||||
|
Reference in New Issue
Block a user