Shift click #37
No reviewers
Labels
No Label
Kind: bug
Kind: duplicate
Kind: question
Status: help
Status: invalid
Status: wontfix
Type: enhance
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: minenux/minetest-game-adventuretest#37
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "shift_click"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
Thanks for merging this, I really like the convenience of SHIFT-CLICK.
Since "formspec" is stored in the individual node items, this change only affects newly placed chests/shelves/... I have code to update the formspec for already placed chests and shelves "on_punch". This let me update those items in existing towns, but "on_punch" seems a little kludgy (not something I'd do without running it past you first). Do you know a smarter way of doing this?
I could do something like the following on server startup, but it might be a little excessive:
`
local fs_pos = find_nodes_in_area({x=-32000,y=-32000,z=-32000}, {x=32000,y=32000,z=32000},
{"default:chest", "default:npc_chest"})
for i = 0, #fs_pos - 1 do
local meta = minetest.get_meta(fs_pos[i])
meta:set_string("formspec",default.chest_formspec)
end
`
I love the convenience of SHIFT-CLICK too I forgot about it and never updated the game.
Maybe the update could be done with an LBM. If I understand LBMs correctly it wouldn't have to run every time a block is loaded. I could be ran only the first time the block is loaded since that LBM was created.