[mp_mesecons] Update to Git patch 32a4823:
https://github.com/AntumDeluge/mtmp-mesecons/tree/32a4823master
parent
a707a60dd7
commit
06c9836ebf
|
@ -493,7 +493,7 @@ The game includes the mods from the default [minetest_game](https://github.com/m
|
|||
[patch.hovercraft]: https://github.com/AntumDeluge/mtmod-hovercraft/tree/96ad3b4
|
||||
[patch.hud]: https://github.com/AntumDeluge/mtmod-hud/tree/6846e20
|
||||
[patch.kpgmobs]: https://github.com/AntumDeluge/mtmod-kpgmobs/tree/0773e37
|
||||
[patch.mesecons]: https://github.com/AntumDeluge/mtmp-mesecons/tree/2c5beee
|
||||
[patch.mesecons]: https://github.com/AntumDeluge/mtmp-mesecons/tree/32a4823
|
||||
[patch.mobf_core]: https://github.com/AntumDeluge/mtmp-mobf_core/tree/e6fa3b7
|
||||
[patch.mobs_goblins]: https://github.com/AntumDeluge/mtmod-mobs_goblins/tree/8813304
|
||||
[patch.mobs_redo]: https://github.com/AntumDeluge/mtmod-mobs_redo/tree/58e123a
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
-- SETTINGS
|
||||
function mesecon.setting(setting, default)
|
||||
if type(default) == "boolean" then
|
||||
local read = minetest.setting_getbool("mesecon."..setting)
|
||||
local read = minetest.settings:get_bool("mesecon."..setting)
|
||||
if read == nil then
|
||||
return default
|
||||
else
|
||||
return read
|
||||
end
|
||||
elseif type(default) == "string" then
|
||||
return minetest.setting_get("mesecon."..setting) or default
|
||||
return minetest.settings:get("mesecon."..setting) or default
|
||||
elseif type(default) == "number" then
|
||||
return tonumber(minetest.setting_get("mesecon."..setting) or default)
|
||||
return tonumber(minetest.settings:get("mesecon."..setting) or default)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -215,7 +215,7 @@ function mesecon.mvps_move_objects(pos, dir, nodestack)
|
|||
end
|
||||
|
||||
-- Move objects lying/standing on the stack (before it was pushed - oldstack)
|
||||
if tonumber(minetest.setting_get("movement_gravity")) > 0 and dir.y == 0 then
|
||||
if tonumber(minetest.settings:get("movement_gravity")) > 0 and dir.y == 0 then
|
||||
-- If gravity positive and dir horizontal, push players standing on the stack
|
||||
for _, n in ipairs(nodestack) do
|
||||
local p_above = vector.add(n.pos, {x=0, y=1, z=0})
|
||||
|
|
Loading…
Reference in New Issue