Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
X
xdecor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Illuna-Minetest
xdecor
Commits
f8fee398
Commit
f8fee398
authored
8 years ago
by
Tim
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
chess.lua
+3
-0
3 additions, 0 deletions
chess.lua
with
3 additions
and
0 deletions
chess.lua
+
3
−
0
View file @
f8fee398
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment