summaryrefslogtreecommitdiff
path: root/railtrack
diff options
context:
space:
mode:
authorstujones11 <stujones111@gmail.com>2016-01-15 20:16:31 +0000
committerstujones11 <stujones111@gmail.com>2016-01-15 20:16:31 +0000
commit36ba9f3f369bef255335a9125a865e6df0b5aadb (patch)
treec11fbd723f9537b7f7e1bad2a815badf2527e7f7 /railtrack
parent4416e9b8ad399afa9016a9454e2f84926797cbb5 (diff)
Fix crash when digging rails in multiplayer
Diffstat (limited to 'railtrack')
-rw-r--r--railtrack/railtrack.lua6
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)