Fix Player on this branch

This commit is contained in:
KingRainbow44 2022-06-22 00:09:08 -04:00
parent 0157c72de8
commit 6058e2b254
No known key found for this signature in database
GPG Key ID: FC2CB64B00D257BE

View File

@ -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);