No enchants loaded from db for negative id items

This commit is contained in:
2024-03-24 09:02:56 -04:00
parent 4fc7c90c15
commit 3fc5fa71a4
+4 -2
View File
@@ -998,8 +998,10 @@ public class Item extends AbstractWorldObject {
}
public final void loadEnchantments() {
//dont load mobloot enchantments, they arent in db.
if (this.getObjectType().equals(GameObjectType.MobLoot)) {
// No enchantments for negative id items in the db. Early exit.
if (this.objectUUID < 0) {
this.magicValue = this.template.item_value + calcMagicValue();
return;
}