Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Readme config addition; Fix hopper flags mixin; Added ability for trusted players to break chests (configurable) #32

Merged
merged 8 commits into from
Nov 13, 2022

Conversation

WanderingCat27
Copy link
Contributor

Fixed the mixin for HopperBlockEntity which, at least in my testing, was not actually preventing hoppers from siphoning from containers locked and flagged false for hoppers.

I also added the ability in the config to allow trusted players to break chests instead of just the owner per
#22
#31
This is set to false by default currently as I did not want to change expected behavior.

I also added a section for config to the readme.

WanderingCat27 and others added 8 commits October 10, 2022 20:29
Adds config that will allow trusted players of a chest to break the chest

This defaults to false as it makes most sense to retain current behavior by default
Added config section to readme
In my testing hopper flags just did not work. The getInventoryAt() seems to be no longer reliable as a mixin to prevent hopper accessing the chests

Injecting and canceling a specific one of the 3 HopperBlockEntity extract methods seems to stop hoppers properly, although, it only stops the hoppers from extracting from a locked and flagged chest while it still is able to insert into any chest logged/flagged or not
you cannot comment out lines in a json. Though if u were to comment them out it would just be deleted, its not a good thing to encourage.
@PotatoPresident PotatoPresident merged commit d1c56df into QuiltServerTools:master Nov 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants