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
91d232d6
Commit
91d232d6
authored
Jun 22, 2022
by
KingRainbow44
Browse files
Fix `Player` on this branch
parent
eed59e0d
Changes
1
Show whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/game/player/Player.java
View file @
91d232d6
...
...
@@ -990,7 +990,7 @@ public class Player {
}
public
void
interactWith
(
int
gadgetEntityId
,
GadgetInteractReq
req
)
{
public
void
interactWith
(
int
gadgetEntityId
,
GadgetInteractReq
opType
)
{
GameEntity
entity
=
getScene
().
getEntityById
(
gadgetEntityId
);
if
(
entity
==
null
)
{
return
;
...
...
@@ -1023,7 +1023,7 @@ public class Player {
return
;
}
boolean
shouldDelete
=
gadget
.
getContent
().
onInteract
(
this
,
req
);
boolean
shouldDelete
=
gadget
.
getContent
().
onInteract
(
this
,
opType
);
if
(
shouldDelete
)
{
entity
.
getScene
().
removeEntity
(
entity
);
...
...
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