mirror of
https://github.com/Melledy/Grasscutter.git
synced 2025-02-05 07:58:45 +00:00
Fix Irreversible equipping
Fix that can not detach equipment after attached
This commit is contained in:
parent
01481fd524
commit
056ba678a8
@ -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()));
|
||||
|
Loading…
Reference in New Issue
Block a user