Fixed bug with setting villager level (possibly)

trying to set the level of a villager currently doesn't seem to work.
From a quick glance at the code, I think this might have been the cause
This commit is contained in:
apuly 2020-05-26 22:30:42 +02:00 committed by GitHub
parent 3b34fdf28c
commit f5ebc0b337
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -79,6 +79,6 @@ public class VillagerWatcher extends AbstractVillagerWatcher {
@NmsAddedIn(val = NmsVersion.v1_14) @NmsAddedIn(val = NmsVersion.v1_14)
public void setLevel(int level) { public void setLevel(int level) {
setVillagerData(new VillagerData(getType(), getProfession(), getLevel())); setVillagerData(new VillagerData(getType(), getProfession(), level));
} }
} }