Fix Irreversible equipping

Fix that can not detach equipment after attached
This commit is contained in:
zhaodice 2022-06-03 13:49:25 +08:00 committed by Melledy
parent 87e7d225cd
commit fe3e3e2b21

View File

@ -22,8 +22,12 @@ public class HandlerSetWidgetSlotReq extends PacketHandler {
// WidgetSlotChangeNotify op & slot key
session.send(new PacketWidgetSlotChangeNotify(WidgetSlotOpOuterClass.WidgetSlotOp.WIDGET_SLOT_OP_DETACH));
// WidgetSlotChangeNotify slot
session.send(new PacketWidgetSlotChangeNotify(req.getMaterialId()));
//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()));