diff options
author | stujones11 <stujones111@gmail.com> | 2016-01-15 20:16:31 +0000 |
---|---|---|
committer | stujones11 <stujones111@gmail.com> | 2016-01-15 20:16:31 +0000 |
commit | 36ba9f3f369bef255335a9125a865e6df0b5aadb (patch) | |
tree | c11fbd723f9537b7f7e1bad2a815badf2527e7f7 /railtrack/railtrack.lua | |
parent | 4416e9b8ad399afa9016a9454e2f84926797cbb5 (diff) |
Fix crash when digging rails in multiplayer
Diffstat (limited to 'railtrack/railtrack.lua')
-rw-r--r-- | railtrack/railtrack.lua | 6 |
1 files changed, 0 insertions, 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) |