Move validation to proper location

This commit is contained in:
TfT_02
2013-07-24 23:45:31 +02:00
parent ccbffca278
commit 7683dfc436
2 changed files with 14 additions and 11 deletions

View File

@ -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);