If two players click same chest, first one's inventory will be lost. #1
Labels
No Label
1a - bug
1b - crash
1c - in progress
1d - ready
1e - wontfix
2a - new feature
2b - mechanics
2c - graphics
2d - docs
2e - compatibility
3a - good first issue
3b - medium
3c - hard
4a - worldgen
4b - crafting
4c - entities
4d - blocks
4e - controls
5a - refactor
5b - testing
5c - release
5d - question
6a - duplicate
6b - help wanted
6c - invalid
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Boot/Boots_Arena-PvP_Mod#1
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Needs a check if there's something stored already.
Probably needs some logging.
Maybe needs some indication that chest is already in use.
Also, with this implementation, if server crashes, there's no in-game way to restore inventory...
Also, takes into account only
maininv, bags are still accessible?Now a player can only use the crate once.
Logging has been added.
Now a player receives the message "You have already used an Arena Chest!".
Now we store data persistently with
mod_storage. Backups are saved during shutdown, loaded at restart.It does, but I think initial issue is still the same - player can lose their inventory.
Try it yourself with 2 players and single chest?
Modstorage may be overkill for this - you already store inventory and owner name in meta - this should be enough to allow people to take their stuff back, no modstorage needed.