Skip to content

Commit

Permalink
Fixed Villager type not being rolled back correctly in MC 1.21+
Browse files Browse the repository at this point in the history
  • Loading branch information
Intelli committed Jul 25, 2024
1 parent fda87e2 commit 888df06
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ else if (entity instanceof AbstractVillager) {
}
}
else if (count == 1) {
if (abstractVillager instanceof Villager && value instanceof Villager.Type) {
if (abstractVillager instanceof Villager && (value instanceof Villager.Type || value instanceof String)) {
Villager villager = (Villager) abstractVillager;
if (value instanceof String) {
value = BukkitAdapter.ADAPTER.getRegistryValue((String) value, Villager.Type.class);
Expand Down

0 comments on commit 888df06

Please sign in to comment.