forked from MagicBane/Server
No enchants loaded from db for negative id items
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user