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
eb703f9f
Commit
eb703f9f
authored
May 02, 2022
by
xtaodada
Committed by
Melledy
May 01, 2022
Browse files
Fix goods limit bug
parent
bd560785
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/server/packet/recv/HandlerBuyGoodsReq.java
View file @
eb703f9f
...
@@ -54,7 +54,7 @@ public class HandlerBuyGoodsReq extends PacketHandler {
...
@@ -54,7 +54,7 @@ public class HandlerBuyGoodsReq extends PacketHandler {
session
.
getPlayer
().
save
();
session
.
getPlayer
().
save
();
}
}
if
(
bought
+
buyGoodsReq
.
getBoughtNum
()
>
sg
.
getBuyLimit
())
{
if
(
(
bought
+
buyGoodsReq
.
getBoughtNum
()
>
sg
.
getBuyLimit
())
&&
sg
.
getBuyLimit
()
!=
0
)
{
return
;
return
;
}
}
...
...
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