From 1fe90631087a8924234a137300b4f27ef1d4edd2 Mon Sep 17 00:00:00 2001 From: Joachim Stolberg Date: Sun, 10 Sep 2017 01:01:26 +0200 Subject: [PATCH] protection improved --- distributor.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/distributor.lua b/distributor.lua index 8af3e92..416198c 100644 --- a/distributor.lua +++ b/distributor.lua @@ -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