aboutsummaryrefslogtreecommitdiff
path: root/advtrains_interlocking/tcb_ts_ui.lua
diff options
context:
space:
mode:
Diffstat (limited to 'advtrains_interlocking/tcb_ts_ui.lua')
-rw-r--r--advtrains_interlocking/tcb_ts_ui.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/advtrains_interlocking/tcb_ts_ui.lua b/advtrains_interlocking/tcb_ts_ui.lua
index dcf6c6e..c07a7a2 100644
--- a/advtrains_interlocking/tcb_ts_ui.lua
+++ b/advtrains_interlocking/tcb_ts_ui.lua
@@ -70,6 +70,8 @@ minetest.register_node("advtrains_interlocking:tcb_node", {
-- end
--end,
can_dig = function(pos, player)
+ if player == nil then return false end
+
local pname = player:get_player_name()
-- Those markers can only be dug when all adjacent TS's are set