|
|
@ -76,8 +76,7 @@ public class Item extends AbstractWorldObject { |
|
|
|
this.numberOfItems = 1; |
|
|
|
this.numberOfItems = 1; |
|
|
|
this.flags.addAll(this.template.item_flags); |
|
|
|
this.flags.addAll(this.template.item_flags); |
|
|
|
|
|
|
|
|
|
|
|
loadEnchantments(); |
|
|
|
loadTemplateEnchantments(); |
|
|
|
applyBakedInStats(); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
@ -975,7 +974,7 @@ public class Item extends AbstractWorldObject { |
|
|
|
return this.magicValue; |
|
|
|
return this.magicValue; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private void applyBakedInStats() { |
|
|
|
private void loadTemplateEnchantments() { |
|
|
|
|
|
|
|
|
|
|
|
EffectsBase effect; |
|
|
|
EffectsBase effect; |
|
|
|
|
|
|
|
|
|
|
@ -1059,7 +1058,7 @@ public class Item extends AbstractWorldObject { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void runAfterLoad() { |
|
|
|
public void runAfterLoad() { |
|
|
|
loadEnchantments(); |
|
|
|
loadEnchantments(); |
|
|
|
applyBakedInStats(); |
|
|
|
loadTemplateEnchantments(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|