2019-03-05 19:20:38 -05:00
|
|
|
-- LUALOCALS < ---------------------------------------------------------
|
2019-04-06 20:49:27 -04:00
|
|
|
local ipairs, minetest
|
|
|
|
= ipairs, minetest
|
2019-03-05 19:20:38 -05:00
|
|
|
-- LUALOCALS > ---------------------------------------------------------
|
|
|
|
|
|
|
|
minetest.register_on_joinplayer(function(player)
|
2019-04-06 20:49:27 -04:00
|
|
|
local inv = player:get_inventory()
|
|
|
|
for _, l in ipairs(inv:get_lists()) do
|
|
|
|
inv:set_size(l, l == "main" and 8 or 0)
|
|
|
|
end
|
2019-03-07 10:08:22 -05:00
|
|
|
|
2019-03-10 15:47:22 -04:00
|
|
|
player:set_physics_override({speed = 1.25})
|
|
|
|
|
2019-03-07 10:08:22 -05:00
|
|
|
player:set_properties({
|
|
|
|
makes_footstep_sound = true,
|
2019-03-10 15:47:22 -04:00
|
|
|
|
2019-03-07 10:08:22 -05:00
|
|
|
-- Allow slight zoom for screenshots
|
|
|
|
zoom_fov = 60
|
|
|
|
})
|
2019-03-05 19:20:38 -05:00
|
|
|
end)
|