changes.patch
src.zip
Hi! First of all, thanks for the mod.
I often end up with a huge auto-populated ore list and there is no quick way to
clean it up: entries can only be removed one by one via Shift+Click -> Delete,
and there is no "clear whole list" action.
I made two small changes and tested them on the v1.20.1-2.18.1 source. I am
attaching the patch (changes.patch) and a short description. Happy to open a
proper PR if that is preferred.
Changes:
- Backspace quick-delete - while hovering an entry in the XRay block list
(GuiSelectionScreen), pressing Backspace removes that entry and persists the
change. The hovered row is highlighted so it is clear what will be removed.
Backspace is ignored while the search box is focused, so typing still works.
/xray clear client command - clears the entire block list and writes an
empty list to config/xray/block_store.json. The file is intentionally kept
(not deleted), otherwise the mod's first-run logic re-populates the default
ores on the next launch.
- Added two lang keys:
xray.tooltips.delete, xray.message.list_cleared.
Files touched: GuiSelectionScreen.java, ClientController.java,
assets/xray/lang/en_us.json.
Tested: open the XRay menu, hover an entry, press Backspace -> entry disappears
and stays gone after reopening the menu / restarting. Run /xray clear -> whole
list emptied and stays empty after restart.
changes.patch
src.zip
Hi! First of all, thanks for the mod.
I often end up with a huge auto-populated ore list and there is no quick way to
clean it up: entries can only be removed one by one via Shift+Click -> Delete,
and there is no "clear whole list" action.
I made two small changes and tested them on the
v1.20.1-2.18.1source. I amattaching the patch (
changes.patch) and a short description. Happy to open aproper PR if that is preferred.
Changes:
(GuiSelectionScreen), pressing Backspace removes that entry and persists the
change. The hovered row is highlighted so it is clear what will be removed.
Backspace is ignored while the search box is focused, so typing still works.
/xray clearclient command - clears the entire block list and writes anempty list to
config/xray/block_store.json. The file is intentionally kept(not deleted), otherwise the mod's first-run logic re-populates the default
ores on the next launch.
xray.tooltips.delete,xray.message.list_cleared.Files touched:
GuiSelectionScreen.java,ClientController.java,assets/xray/lang/en_us.json.Tested: open the XRay menu, hover an entry, press Backspace -> entry disappears
and stays gone after reopening the menu / restarting. Run
/xray clear-> wholelist emptied and stays empty after restart.