From 0036d1b753fe8f3cc3fb20dfbbeefd8a2a8cc968 Mon Sep 17 00:00:00 2001 From: blablubbabc Date: Tue, 7 May 2019 15:36:56 +0200 Subject: [PATCH] SPIGOT-4887: Villager level minimum is 1 --- src/main/java/org/bukkit/craftbukkit/entity/CraftVillager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftVillager.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftVillager.java index 8cb4967e0f..6f0442131d 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftVillager.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftVillager.java @@ -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)); }