Commit 056ba678 authored by zhaodice's avatar zhaodice Committed by Melledy
Browse files

Fix Irreversible equipping

Fix that can not detach equipment after attached
parent 01481fd5
......@@ -22,8 +22,12 @@ public class HandlerSetWidgetSlotReq extends PacketHandler {
// WidgetSlotChangeNotify op & slot key
session.send(new PacketWidgetSlotChangeNotify(WidgetSlotOpOuterClass.WidgetSlotOp.WIDGET_SLOT_OP_DETACH));
//only attaching the widget can set it
if(req.getOp() == WidgetSlotOpOuterClass.WidgetSlotOp.WIDGET_SLOT_OP_ATTACH){
// WidgetSlotChangeNotify slot
session.send(new PacketWidgetSlotChangeNotify(req.getMaterialId()));
}
// SetWidgetSlotRsp
session.send(new PacketSetWidgetSlotRsp(req.getMaterialId()));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment