SPIGOT-4887: Villager level minimum is 1

This commit is contained in:
blablubbabc 2019-05-07 15:36:56 +02:00 committed by md_5
parent d20328368c
commit 0036d1b753

View file

@ -60,7 +60,7 @@ public class CraftVillager extends CraftAbstractVillager implements Villager {
@Override
public void setVillagerLevel(int level) {
Preconditions.checkArgument(0 <= level && level <= 5, "level must be between [0, 5]");
Preconditions.checkArgument(1 <= level && level <= 5, "level must be between [1, 5]");
getHandle().setVillagerData(getHandle().getVillagerData().withLevel(level));
}