|
|
@ -111,9 +111,17 @@ function creative_regions:player_enter_region(player, new_privs_table) |
|
|
|
if minetest.get_modpath("unified_inventory") then |
|
|
|
unified_inventory.set_inventory_formspec(player, unified_inventory.default) |
|
|
|
end |
|
|
|
if minetest.get_modpath("hunger_ng") then |
|
|
|
-- player:get_meta():set_string("hunger_ng:hunger_disabled", 1) |
|
|
|
hunger_ng.configure_hunger(name, 'disable') |
|
|
|
end |
|
|
|
elseif new_mode == "arena" then |
|
|
|
local inv = player:get_inventory() |
|
|
|
inv:set_list("main", {}) |
|
|
|
elseif new_mode == "survival" then |
|
|
|
if minetest.get_modpath("hunger_ng") then |
|
|
|
hunger_ng.configure_hunger(name, 'enable') |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
end |
|
|
|