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
dbae8a88
Commit
dbae8a88
authored
10 years ago
by
Craig Davison
Committed by
Craig Robbins
10 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix some undeclared global variables
parent
8df8554f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
builtin/game/chatcommands.lua
+2
-1
2 additions, 1 deletion
builtin/game/chatcommands.lua
builtin/game/falling.lua
+5
-5
5 additions, 5 deletions
builtin/game/falling.lua
with
7 additions
and
6 deletions
builtin/game/chatcommands.lua
+
2
−
1
View file @
dbae8a88
...
...
@@ -252,7 +252,7 @@ core.register_chatcommand("clearpassword", {
description
=
"set empty password"
,
privs
=
{
password
=
true
},
func
=
function
(
name
,
param
)
toname
=
param
local
toname
=
param
if
toname
==
""
then
return
false
,
"Name field required"
end
...
...
@@ -426,6 +426,7 @@ local function handle_give_command(cmd, giver, receiver, stackstring)
return
false
,
receiver
..
" is not a known player"
end
local
leftover
=
receiverref
:
get_inventory
():
add_item
(
"main"
,
itemstack
)
local
partiality
if
leftover
:
is_empty
()
then
partiality
=
""
elseif
leftover
:
get_count
()
==
itemstack
:
get_count
()
then
...
...
This diff is collapsed.
Click to expand it.
builtin/game/falling.lua
+
5
−
5
View file @
dbae8a88
...
...
@@ -30,7 +30,7 @@ core.register_entity(":__builtin:falling_node", {
item_texture
=
core
.
registered_items
[
itemname
].
inventory_image
item_type
=
core
.
registered_items
[
itemname
].
type
end
prop
=
{
local
prop
=
{
is_visible
=
true
,
textures
=
{
node
.
name
},
}
...
...
@@ -112,7 +112,7 @@ core.register_entity(":__builtin:falling_node", {
})
function
spawn_falling_node
(
p
,
node
)
obj
=
core
.
add_entity
(
p
,
"__builtin:falling_node"
)
local
obj
=
core
.
add_entity
(
p
,
"__builtin:falling_node"
)
obj
:
get_luaentity
():
set_node
(
node
)
end
...
...
@@ -163,10 +163,10 @@ end
--
function
nodeupdate_single
(
p
,
delay
)
n
=
core
.
get_node
(
p
)
local
n
=
core
.
get_node
(
p
)
if
core
.
get_item_group
(
n
.
name
,
"falling_node"
)
~=
0
then
p_bottom
=
{
x
=
p
.
x
,
y
=
p
.
y
-
1
,
z
=
p
.
z
}
n_bottom
=
core
.
get_node
(
p_bottom
)
local
p_bottom
=
{
x
=
p
.
x
,
y
=
p
.
y
-
1
,
z
=
p
.
z
}
local
n_bottom
=
core
.
get_node
(
p_bottom
)
-- Note: walkable is in the node definition, not in item groups
if
core
.
registered_nodes
[
n_bottom
.
name
]
and
(
core
.
get_item_group
(
n
.
name
,
"float"
)
==
0
or
...
...
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