Doors: Disable client dig prediction for protected doors
authorsfan5 <sfan5@live.de>
Mon, 11 Sep 2017 19:13:55 +0000 (21:13 +0200)
committersfan5 <sfan5@live.de>
Mon, 11 Sep 2017 19:35:28 +0000 (21:35 +0200)
mods/doors/init.lua

index 0eed5b84bdccfdd50ec019e3f2940dda2f62a3b1..4ee2c5abd0175512e15f9f377711b6bae09cd216 100644 (file)
@@ -410,6 +410,7 @@ function doors.register(name, def)
 
                        return secret, "a locked door", owner
                end
+               def.node_dig_prediction = ""
        else
                def.on_blast = function(pos, intensity)
                        minetest.remove_node(pos)