Closed OgelGames closed 4 years ago
I don't particularly want to merge this. I thought my way of using the itemholder was quite elegant.
I agree that your method is much simpler, but the problem is that it uses the default dropped item entity, which means any player (and vacuum tubes) can pick up the item. By using a custom entity, and using add_entity() instead of add_item(), the only way to pick up the item is by clicking the holder.
I don't really see that as a problem.
That isn't the only bug fixed with the new code, it's just the one that requires the most additional code; here are the bugs that are fixed with the new code:
hmmm, I still would prefer not to change anything
- the itemholder's protection is only effective one way (items can be removed by any player, but only placed by the owner)
I don't mind that, but am not against adding that too for UX concistancy with [itemframes].
Fixes issues: https://github.com/pandorabox-io/pandorabox.io/issues/341 and https://github.com/pandorabox-io/pandorabox.io/issues/293