-
Notifications
You must be signed in to change notification settings - Fork 96
EnderChest support 👻 #1045
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
EnderChest support 👻 #1045
Conversation
I believe players still would be blocked from placing ender chests because of the listener in EventFilterMatchModule PGM/core/src/main/java/tc/oc/pgm/modules/EventFilterMatchModule.java Lines 259 to 271 in 963f02a
Maybe also filter that on the enabled boolean? EDIT: Or maybe not? Since you are cancelling the event, but then this listener is redundant Also, with this addition maybe it would also make sense to add ender chest support to kits? |
@KingOfSquares Would you suggest allowing them to be placed?
Could you elaborate on this? Thanks! |
For the kit thing, there is some support already in For placing ender chests: I agree that the ability to being able to place ender chests is not correct in most situations, but since they are now usable I only think its a matter of time before someone requests how to enable placing them(for some reason). Why not default it to false and include the possibility as an attribute? I also believe the error message is a little misleading, |
core/src/main/java/tc/oc/pgm/enderchest/EnderChestMatchModule.java
Outdated
Show resolved
Hide resolved
core/src/main/java/tc/oc/pgm/enderchest/EnderChestMatchModule.java
Outdated
Show resolved
Hide resolved
core/src/main/java/tc/oc/pgm/enderchest/EnderChestMatchModule.java
Outdated
Show resolved
Hide resolved
core/src/main/java/tc/oc/pgm/enderchest/EnderChestMatchModule.java
Outdated
Show resolved
Hide resolved
core/src/main/java/tc/oc/pgm/enderchest/EnderChestMatchModule.java
Outdated
Show resolved
Hide resolved
eeb32b3
to
735f692
Compare
Hey @applenick, thanks for working on this. I think it would be better to integrate ender chest support into the existing
|
No problem! Excellent point about the kit/slot support, I believe Simon mentioned that too in earlier comments. Perhaps we should just scrap the custom inventory logic and have it rely on the built-in enderchests. That way they'll already support slots like mentioned. Though I believe it's important to keep some of the new functionality added like drop-off locations and the fallback attribute. Will look into fixing this up over the weekend 👍 |
20c50fe
to
d978236
Compare
Finally had some time and fixed this up 🎉 Switched away from using the custom enderchest implementation we originally had, relying now on the traditional enderchest contents. We do lose the capability to customize enderchest row count, but I believe it's a fair tradeoff for being able to have enderchests remain compatible with the Kit/Slot system. If there's any additional feedback let me know and I'll be happy to make adjustments 👍 |
Signed-off-by: applenick <applenick@users.noreply.github.com>
Signed-off-by: applenick <applenick@users.noreply.github.com>
Signed-off-by: applenick <applenick@users.noreply.github.com>
Signed-off-by: applenick <applenick@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
EnderChest support
Hooray! 👻 This PR adds proper EnderChest support to PGM.
XML Example
If you've got any feedback let me know and I'd be more than happy to make accommodations. As always these changes have been tested and should work as intended 👍
Signed-off-by: applenick applenick@users.noreply.github.com