Skip to content


Doors: Fix trapdoor crash on can_dig with nil-player (e.g. minetest.d…
Browse files Browse the repository at this point in the history
  • Loading branch information
t4im authored and paramat committed Jul 10, 2016
1 parent f1f96db commit fcceec0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mods/doors/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -543,8 +543,8 @@ function doors.register_trapdoor(name, def)
return true
local meta = minetest.get_meta(pos)
local pn = player:get_player_name()
return meta:get_string("doors_owner") == pn
local player_name = player and player:get_player_name()
return meta:get_string("doors_owner") == player_name

def.on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
Expand Down

0 comments on commit fcceec0

Please sign in to comment.