Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
illuna-minetest
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
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
illuna-minetest
Commits
367b5382
Commit
367b5382
authored
11 years ago
by
PilzAdam
Browse files
Options
Downloads
Patches
Plain Diff
Replace print()s with minetest.log() in builtin
parent
a92fc356
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
builtin/chatcommands.lua
+3
-3
3 additions, 3 deletions
builtin/chatcommands.lua
builtin/modmgr.lua
+2
-2
2 additions, 2 deletions
builtin/modmgr.lua
builtin/serialize.lua
+1
-1
1 addition, 1 deletion
builtin/serialize.lua
with
6 additions
and
6 deletions
builtin/chatcommands.lua
+
3
−
3
View file @
367b5382
...
...
@@ -471,10 +471,10 @@ minetest.register_chatcommand("spawnentity", {
minetest
.
chat_send_player
(
name
,
"entityname required"
)
return
end
print
(
'/spawnentity invoked, entityname="'
..
entityname
..
'"'
)
minetest
.
log
(
"action"
,
'/spawnentity invoked, entityname="'
..
entityname
..
'"'
)
local
player
=
minetest
.
get_player_by_name
(
name
)
if
player
==
nil
then
print
(
"Unable to spawn entity, player is nil"
)
minetest
.
log
(
"error"
,
"Unable to spawn entity, player is nil"
)
return
true
-- Handled chat message
end
local
p
=
player
:
getpos
()
...
...
@@ -491,7 +491,7 @@ minetest.register_chatcommand("pulverize", {
func
=
function
(
name
,
param
)
local
player
=
minetest
.
get_player_by_name
(
name
)
if
player
==
nil
then
print
(
"Unable to pulverize, player is nil"
)
minetest
.
log
(
"error"
,
"Unable to pulverize, player is nil"
)
return
true
-- Handled chat message
end
if
player
:
get_wielded_item
():
is_empty
()
then
...
...
This diff is collapsed.
Click to expand it.
builtin/modmgr.lua
+
2
−
2
View file @
367b5382
...
...
@@ -778,7 +778,7 @@ function modmgr.handle_configure_world_buttons(fields)
end
if
not
worldfile
:
write
()
then
print
(
"f
ailed to write world config file"
)
minetest
.
log
(
"error"
,
"F
ailed to write world config file"
)
end
modmgr
.
modlist
=
nil
...
...
@@ -932,7 +932,7 @@ function modmgr.preparemodlist(data)
if
element
~=
nil
then
element
.
enabled
=
engine
.
is_yes
(
value
)
else
print
(
"Mod: "
..
key
..
" "
..
dump
(
value
)
..
" but not found"
)
minetest
.
log
(
"info"
,
"Mod: "
..
key
..
" "
..
dump
(
value
)
..
" but not found"
)
end
end
end
...
...
This diff is collapsed.
Click to expand it.
builtin/serialize.lua
+
1
−
1
View file @
367b5382
...
...
@@ -178,7 +178,7 @@ function minetest.deserialize(sdata)
if
okay
then
return
results
end
print
(
'error:
'
..
results
)
minetest
.
log
(
'error'
,
'minetest.deserialize():
'
..
results
)
return
nil
end
...
...
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