mirror of
https://github.com/mt-mods/signs_lib.git
synced 2025-01-12 00:30:22 +01:00
hotfix fake player action
This commit is contained in:
parent
b0808a376a
commit
14efa6eeb7
1
api.lua
1
api.lua
@ -722,6 +722,7 @@ end
|
||||
function signs_lib.rightclick_sign(pos, node, player, itemstack, pointed_thing)
|
||||
|
||||
if not player or not signs_lib.can_modify(pos, player) then return end
|
||||
if not player.get_meta then return end
|
||||
|
||||
player:get_meta():set_string("signslib:pos", minetest.pos_to_string(pos))
|
||||
minetest.show_formspec(player:get_player_name(), "signs_lib:sign", get_sign_formspec(pos, node.name))
|
||||
|
Loading…
Reference in New Issue
Block a user