mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-25 08:22:53 +08:00
Fix Player
on this branch
This commit is contained in:
parent
eed59e0d77
commit
91d232d625
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user