Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
ziqian zhang
Grasscutter
Commits
056ba678
Commit
056ba678
authored
Jun 03, 2022
by
zhaodice
Committed by
Melledy
Jun 03, 2022
Browse files
Fix Irreversible equipping
Fix that can not detach equipment after attached
parent
01481fd5
Changes
1
Show whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/server/packet/recv/HandlerSetWidgetSlotReq.java
View file @
056ba678
...
@@ -22,8 +22,12 @@ public class HandlerSetWidgetSlotReq extends PacketHandler {
...
@@ -22,8 +22,12 @@ public class HandlerSetWidgetSlotReq extends PacketHandler {
// WidgetSlotChangeNotify op & slot key
// WidgetSlotChangeNotify op & slot key
session
.
send
(
new
PacketWidgetSlotChangeNotify
(
WidgetSlotOpOuterClass
.
WidgetSlotOp
.
WIDGET_SLOT_OP_DETACH
));
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
// WidgetSlotChangeNotify slot
session
.
send
(
new
PacketWidgetSlotChangeNotify
(
req
.
getMaterialId
()));
session
.
send
(
new
PacketWidgetSlotChangeNotify
(
req
.
getMaterialId
()));
}
// SetWidgetSlotRsp
// SetWidgetSlotRsp
session
.
send
(
new
PacketSetWidgetSlotRsp
(
req
.
getMaterialId
()));
session
.
send
(
new
PacketSetWidgetSlotRsp
(
req
.
getMaterialId
()));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment