Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-15 04:20:04 +01:00
SPIGOT-4887: Villager level minimum is 1
Dieser Commit ist enthalten in:
Ursprung
d20328368c
Commit
0036d1b753
@ -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));
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren