projects
/
oweals
/
minetest_game.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0819d4b
)
Carts: Fix the rail table overwrite behaviour
author
SmallJoker
<mk939@ymail.com>
Sun, 12 Feb 2017 10:47:22 +0000
(11:47 +0100)
committer
Auke Kok
<sofar+github@foo-projects.org>
Sun, 12 Feb 2017 19:39:52 +0000
(11:39 -0800)
mods/carts/functions.lua
patch
|
blob
|
history
diff --git
a/mods/carts/functions.lua
b/mods/carts/functions.lua
index 285645cb87892dd303efdc9d290e7a7553aa6c32..a47171948a8dbabedca691e005a9eee2dfc4db32 100644
(file)
--- a/
mods/carts/functions.lua
+++ b/
mods/carts/functions.lua
@@
-181,8
+181,8
@@
function carts:pathfinder(pos_, old_pos, old_dir, ctrl, pf_switch, railtype)
return false
end
-function carts:register_rail(name, def, railparams)
- local def
_default
= {
+function carts:register_rail(name, def
_overwrite
, railparams)
+ local def = {
drawtype = "raillike",
paramtype = "light",
sunlight_propagates = true,
@@
-194,7
+194,7
@@
function carts:register_rail(name, def, railparams)
},
sounds = default.node_sound_metal_defaults()
}
- for k, v in pairs(def_
default
) do
+ for k, v in pairs(def_
overwrite
) do
def[k] = v
end
if not def.inventory_image then