Skip to content

Commit

Permalink
tcb: Fix crash when player is nil
Browse files Browse the repository at this point in the history
  • Loading branch information
lnjX authored and orwell96 committed Sep 1, 2020
1 parent e4ccf8f commit 00be2b5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions advtrains_interlocking/tcb_ts_ui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 00be2b5

Please sign in to comment.