forked from github-mirror/CoreProtect
Fixed Villager type not being rolled back correctly in MC 1.21+
This commit is contained in:
1 parent
fda87e2f6a
commit
888df067f9
1 file changed
+1
-1
@@ -338,7 +338,7 @@ public class EntityUtil {
|
||||
}
|
||||
}
|
||||
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);
|
||||
|
||||
Reference in new issue
Block a user