mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-12-16 17:05:20 +01:00
Fix Player on this branch
This commit is contained in:
@@ -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);
|
GameEntity entity = getScene().getEntityById(gadgetEntityId);
|
||||||
if (entity == null) {
|
if (entity == null) {
|
||||||
return;
|
return;
|
||||||
@@ -1023,7 +1023,7 @@ public class Player {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
boolean shouldDelete = gadget.getContent().onInteract(this, req);
|
boolean shouldDelete = gadget.getContent().onInteract(this, opType);
|
||||||
|
|
||||||
if (shouldDelete) {
|
if (shouldDelete) {
|
||||||
entity.getScene().removeEntity(entity);
|
entity.getScene().removeEntity(entity);
|
||||||
|
|||||||
Reference in New Issue
Block a user