mirror of
https://github.com/minetest-mods/warps.git
synced 2025-01-09 17:40:19 +01:00
warp stone bug fix
block unprivileged players from placing warp stones since they cant edit or break them anyway.
This commit is contained in:
parent
01ad0c80b3
commit
5069a3e589
5
init.lua
5
init.lua
@ -332,6 +332,11 @@ minetest.register_node("warps:warpstone", {
|
||||
))
|
||||
warp_queue_add(puncher, destination)
|
||||
end,
|
||||
on_place = function(itemstack, placer, pointed_thing)
|
||||
if placer and minetest.check_player_privs(placer, "warp_admin") then
|
||||
return minetest.item_place(itemstack, placer, pointed_thing)
|
||||
end
|
||||
end,
|
||||
})
|
||||
|
||||
firstload()
|
||||
|
Loading…
Reference in New Issue
Block a user