From 5069a3e5896a9905da03ed254d3e611551986ccb Mon Sep 17 00:00:00 2001 From: Jason the Leech <69403976+JasonTable@users.noreply.github.com> Date: Thu, 16 Feb 2023 12:46:11 -0500 Subject: [PATCH] warp stone bug fix block unprivileged players from placing warp stones since they cant edit or break them anyway. --- init.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/init.lua b/init.lua index 5f784bc..c88122a 100644 --- a/init.lua +++ b/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()