Avoid lighting bugs, players messing w/ inventory via CSM.
This commit is contained in:
parent
28e9e52446
commit
db5cbd3de4
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user