Skip to content

Commit

Permalink
Restrict item extraction out of EMC to the Transmutation Terminal only
Browse files Browse the repository at this point in the history
  • Loading branch information
62832 committed May 7, 2024
1 parent eecf132 commit e7c1349
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/java/gripe/_90/appliede/me/service/EMCStorage.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

import gripe._90.appliede.AppliedE;
import gripe._90.appliede.me.key.EMCKey;
import gripe._90.appliede.menu.TransmutationTerminalMenu;

import moze_intel.projecte.api.ItemInfo;
import moze_intel.projecte.api.capabilities.IKnowledgeProvider;
Expand Down Expand Up @@ -218,6 +219,11 @@ public long insertItem(AEItemKey what, long amount, Actionable mode, IActionSour
}

public long extractItem(AEItemKey what, long amount, Actionable mode, IActionSource source, boolean skipStored) {
if (source.player().isPresent()
&& !(source.player().get().containerMenu instanceof TransmutationTerminalMenu)) {
return 0;
}

if (!service.knowsItem(what)) {
return 0;
}
Expand Down

0 comments on commit e7c1349

Please sign in to comment.