修复PerkTag获取问题

This commit is contained in:
Light_Quanta 2024-08-08 04:40:47 +08:00
parent 6a715f7721
commit 1173022f82
No known key found for this signature in database
GPG key ID: 11A39A1B8C890959

View file

@ -61,7 +61,7 @@ public class PerkHelper {
var tagPerk = tag.getCompound(TAG_PERK);
if (!tagPerk.contains(type.getName())) return new CompoundTag();
return tag.getCompound(type.getName());
return tagPerk.getCompound(type.getName());
}
public static void setPerk(ItemStack stack, Perk perk, int level) {