Hi Red
event.onPlayerObjectInteraction() does not appear to be called when accessing the saddle bags is this supposed to be like this?
Hi Red
event.onPlayerObjectInteraction() does not appear to be called when accessing the saddle bags is this supposed to be like this?
did you try the chestAccessEvent? that is the one that is called for all containers.
Though from my understanding the object interaction should be called as well unless red has set it so it doesn't as chests have their own special event
Not tried the chestAccessEvent I'll take a look now
Edit: hmm still no. Can't seem to see what gets called when accessing saddle bags.
Unfortunately neither the PlayerObjectInteractionEvent nor the PlayerChestAccessEvent are called when opening a saddle bag... both events are only supposed to be called if a player interacts with a static object, i.e. furniture or actual chests/crates (which were placed in the world). These events offer particular object functions (get object status, info, chunk pos etc) which do not apply to npcs...
I guess we have to add an additional event for saddlebags... I was thinking about a universal "StorageAccessEvent", although I guess that doesn't really work (since the additional information about the actual entity [object, npc, vehicle etc] are crucial). So I guess there will be a new "PlayerSaddleBagAccessEvent" or something like that
PlayerSaddleBagAccessEvent sounds spot on to me Thanks for the reply Red
Maybe NPCInventoryAccessEvent to keep it a little more generic.
Maybe NPCInventoryAccessEvent to keep it a little more generic.
Sounds like a good idea!
Don’t have an account yet? Create a new account now and be part of our community!