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
4124e360
Commit
4124e360
authored
9 years ago
by
Rui
Committed by
est31
9 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Minor tweaks __builtin:falling_node
parent
0903190b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
builtin/game/falling.lua
+3
-13
3 additions, 13 deletions
builtin/game/falling.lua
with
3 additions
and
13 deletions
builtin/game/falling.lua
+
3
−
13
View file @
4124e360
...
...
@@ -18,18 +18,6 @@ core.register_entity(":__builtin:falling_node", {
set_node
=
function
(
self
,
node
)
self
.
node
=
node
local
stack
=
ItemStack
(
node
.
name
)
local
itemtable
=
stack
:
to_table
()
local
itemname
=
nil
if
itemtable
then
itemname
=
stack
:
to_table
().
name
end
local
item_texture
=
nil
local
item_type
=
""
if
core
.
registered_items
[
itemname
]
then
item_texture
=
core
.
registered_items
[
itemname
].
inventory_image
item_type
=
core
.
registered_items
[
itemname
].
type
end
local
prop
=
{
is_visible
=
true
,
textures
=
{
node
.
name
},
...
...
@@ -43,7 +31,9 @@ core.register_entity(":__builtin:falling_node", {
on_activate
=
function
(
self
,
staticdata
)
self
.
object
:
set_armor_groups
({
immortal
=
1
})
self
:
set_node
({
name
=
staticdata
})
if
staticdata
then
self
:
set_node
({
name
=
staticdata
})
end
end
,
on_step
=
function
(
self
,
dtime
)
...
...
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