Skip to content
Snippets Groups Projects
Commit f8fee398 authored by Tim's avatar Tim
Browse files

Chess: Don't crash on nil-player calling can_dig.

parent 9fbf9048
No related branches found
No related tags found
No related merge requests found
......@@ -556,6 +556,9 @@ function realchess.fields(pos, _, fields, sender)
end
function realchess.dig(pos, player)
if not player then
return false
end
local meta = minetest.get_meta(pos)
local playerName = player:get_player_name()
local timeout_limit = meta:get_int("lastMoveTime") + 300
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment