| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
There was a problem hiding this comment.
There, easier to fix
Sorry, something went wrong.
…ms/BaseSTBMachine.java Co-authored-by: Sfiguz7 <37039432+Sfiguz7@users.noreply.github.com>
| if (hasOpenGUI(player)) { | ||
| Debugger.getInstance().debug(player.getName() + " opened GUI for " + getOwningItem()); | ||
| setOpenGUI(player, this); | ||
| listener.onGUIOpened(player); | ||
| player.openInventory(inventory); |
There was a problem hiding this comment.
This shit is horrible
Why don't we have a method to do the whole setOpenGUI, onGUIOpened and openInv.... out of scope here but fuck meeeeeeee
Sorry, something went wrong.
|
|
||
| @Override | ||
| public void hideForAll() { | ||
| for (HumanEntity player : new ArrayList<>(inventory.getViewers())) { |
There was a problem hiding this comment.
getViewers already a List...
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Description
STB Recipe books will allow users to remove items if opened twice fast enough (autoclicker makes this trivial) allowing for the removal of any STB/Vanilla/other registered recipe item assuming they are on the correct page before attempting.
STB machines allow their items to be removed if the machine is broken while being viewed either by TNT or a 2nd player.
Changes
For recipe book dupes, I added a check to see if the player has the inventory opened before allowing the 2nd instance to open. This resolved the dupe and has no noticable side effects on machine GUIs.
For the machines I added a check for viewing players and kick them out.
Related Issues
Don't think these have ever been reported weirdly!
Checklist