protection improved

master
Joachim Stolberg 2017-09-10 01:01:26 +02:00
parent b6d468d3b8
commit 1fe9063108
1 changed files with 3 additions and 0 deletions

View File

@ -144,6 +144,9 @@ local function keep_running(pos, elapsed)
end
local function on_receive_fields(pos, formname, fields, player)
if minetest.is_protected(pos, player:get_player_name()) then
return
end
local meta = minetest.get_meta(pos)
local running = minetest.deserialize(meta:get_string("running"))
if fields.running1 ~= nil then