forked from unimatrix/web
Mask gameplay overlays and page native Decisions
This commit is contained in:
parent
450fe08df6
commit
5d80713483
1 changed files with 106 additions and 14 deletions
|
|
@ -308,6 +308,7 @@ final class QuestMenus implements Listener {
|
|||
Map<Integer,Runnable> visibleActions=new HashMap<>();
|
||||
for(var card:cards)if(card.actionable())visibleActions.put(card.slot(),screen.actions.get(card.slot()));
|
||||
var callbacks=Map.copyOf(visibleActions);
|
||||
player.closeInventory();
|
||||
var world=player.getWorld().getUID();
|
||||
try{
|
||||
if(!transport.open(player,document,slot->{
|
||||
|
|
@ -321,7 +322,6 @@ final class QuestMenus implements Listener {
|
|||
plugin.getLogger().warning("Development Decisions view unavailable: "+failure.getClass().getSimpleName());
|
||||
return false;
|
||||
}
|
||||
player.closeInventory();
|
||||
screen.gate.markFormVisible(world);
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue

Staff