From 36ba9f3f369bef255335a9125a865e6df0b5aadb Mon Sep 17 00:00:00 2001 From: stujones11 Date: Fri, 15 Jan 2016 20:16:31 +0000 Subject: Fix crash when digging rails in multiplayer --- railtrack/railtrack.lua | 6 ------ 1 file changed, 6 deletions(-) diff --git a/railtrack/railtrack.lua b/railtrack/railtrack.lua index 9b4c2c9..ffb18d1 100644 --- a/railtrack/railtrack.lua +++ b/railtrack/railtrack.lua @@ -46,12 +46,6 @@ railtrack.default_rail = { railtrack:update_rails(pos) end, after_destruct = function(pos, oldnode) - if not minetest.is_singleplayer() then - if not minetest.check_player_privs(name, {rails=true}) then - minetest.chat_send_player(name, "Requires rails privilege") - minetest.set_node(pos, oldnode) - end - end local cons = railtrack:get_connections(pos) for _, p in pairs(cons) do railtrack:update_rails(p) -- cgit v1.2.3