From 23820cd6d5c597cdcc6e16c8dfac03536c546dca Mon Sep 17 00:00:00 2001 From: MobiusDev <8391001+MobiusDevelopment@users.noreply.github.com> Date: Sat, 24 Dec 2016 17:07:26 +0000 Subject: [PATCH] Fix for hair appearance conflicting with original model. --- .../l2jmobius/gameserver/model/itemcontainer/PcInventory.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/L2J_Mobius_Underground/java/com/l2jmobius/gameserver/model/itemcontainer/PcInventory.java b/L2J_Mobius_Underground/java/com/l2jmobius/gameserver/model/itemcontainer/PcInventory.java index 34c5f4b4cc..25e7d08450 100644 --- a/L2J_Mobius_Underground/java/com/l2jmobius/gameserver/model/itemcontainer/PcInventory.java +++ b/L2J_Mobius_Underground/java/com/l2jmobius/gameserver/model/itemcontainer/PcInventory.java @@ -788,6 +788,10 @@ public class PcInventory extends Inventory paperdoll[slot][1] = invdata.getInt("item_id"); paperdoll[slot][2] = invdata.getInt("enchant_level"); paperdoll[slot][3] = vars.getInt(ItemVariables.VISUAL_ID, 0); + if (paperdoll[slot][3] > 0) // fix for hair appearance conflicting with original model + { + paperdoll[slot][1] = paperdoll[slot][3]; + } } } }