LunchEssentials v1.7.2.jar
Curse Maven Snippet
What's new
# LunchEssentials 1.7.2
Changes since 1.7.1. Server-side only: players do not need to install it. Configs and world data stay compatible.
## Staff mode
- **Staff mode no longer loses items.** With Inventorio installed, `/staffmode` used to wipe the tool belt, the utility belt and the deep pockets, and leaving staff mode never gave them back. Those slots are now put aside with the rest of the inventory and come back when you leave.
- Each time you enter staff mode, a copy of your inventory is also saved in your inventory backups ("before staff mode"), so it can still be restored from your player file if anything goes wrong.
- Items you receive while in staff mode (for example with `/give`) are kept when you leave; if your inventory is full, they fall at your feet.
- Dying in staff mode only removes the staff tools: anything else you carry (such as Curios trinkets) drops normally.
- Entering staff mode now also selects the first hotbar slot on your screen.
## Inventorio
- **Inventory backups and death copies now include the tool belt, the utility belt and the deep pockets.** Restoring a backup puts those slots back too, "Give me a copy" hands them over, and the backup screen shows a "Belts and pockets" icon listing them. Backups made before this version are untouched and leave those slots alone when restored.
- `/whohas` also looks into those slots for online players ("belts and pockets").
## Stability
- **A bug in one feature can no longer crash the server.** Every event the mod listens to (ticks, chat, commands, block changes, damage...) now runs behind a guard: if one of them fails, the error is written to the server log ("... failed; the server keeps running") and the rest of the server carries on. The same error is reported at most once every 30 seconds.
- The block log no longer fails when a modded block refuses to give its contents: the change is still logged, without the contents.
## Performance
- Saving a backup no longer copies every older backup on the server thread: the file is prepared and written in the background.
## If a staff member already lost items
- Items lost in staff mode with 1.7.1 cannot come back by themselves. A staff member with `backups.restore` can look at the player's inventory backups from their player file: a backup taken before they entered staff mode may still hold the items of the normal inventory slots. Backups made with 1.7.1 do not include Inventorio's slots.
## Under the hood
- Code cleanup.
Works with LunchWorlds 1.8.
This mod has no additional files