Avoid lighting bugs, players messing w/ inventory via CSM.

This commit is contained in:
Aaron Suen 2019-04-09 21:06:55 -04:00
parent 28e9e52446
commit db5cbd3de4
2 changed files with 4 additions and 2 deletions

View File

@ -37,7 +37,5 @@ minetest.register_on_generated(function(minp, maxp)
end
vm:set_data(data)
vm:set_lighting({day = 0, night = 0})
vm:calc_lighting()
vm:write_to_map()
end)

View File

@ -18,3 +18,7 @@ minetest.register_on_joinplayer(function(player)
zoom_fov = 60
})
end)
minetest.register_allow_player_inventory_action(function(_, action)
return action == "move" and 0 or 1000000
end)