diff --git a/src/engine/objects/MobEquipment.java b/src/engine/objects/MobEquipment.java index 8b39b4a7..5cdf9a21 100644 --- a/src/engine/objects/MobEquipment.java +++ b/src/engine/objects/MobEquipment.java @@ -89,7 +89,7 @@ public class MobEquipment extends AbstractGameObject { if (useSlot) writer.putInt(mobEquipment.slot.ordinal()); writer.putInt(0); // Pad - writer.putInt(mobEquipment.itemBase.getUUID()); + writer.putInt(mobEquipment.templateID); writer.putInt(mobEquipment.getObjectType().ordinal()); writer.putInt(mobEquipment.getObjectUUID()); @@ -156,11 +156,13 @@ public class MobEquipment extends AbstractGameObject { int cnt = 0; EffectsBase pre = null; EffectsBase suf = null; + if (mobEquipment.prefix != null) { pre = PowersManager.getEffectByIDString(mobEquipment.prefix.getIDString()); if (pre != null) cnt++; } + if (mobEquipment.suffix != null) { suf = PowersManager.getEffectByIDString(mobEquipment.suffix.getIDString()); if (suf != null)