diff --git a/README.txt b/README.txt index dec7202..4920af5 100644 --- a/README.txt +++ b/README.txt @@ -2,7 +2,7 @@ Subgame for the Minetest engine. Community approach on trying to recreate the unreleased UFOrace by Kenny. See https://forum.minetest.net/viewtopic.php?f=50&t=12391 -At the moment unusable. Just trow in the code we need. +At the moment unusable. Just throw in the code we need. # @@ -25,7 +25,7 @@ At the moment unusable. Just trow in the code we need. Ingame switching -The hard part is not to add to much. +The hard part is not to add too much. # # In progress diff --git a/mods/eye_height/init.lua b/mods/eye_height/init.lua new file mode 100644 index 0000000..d2ea642 --- /dev/null +++ b/mods/eye_height/init.lua @@ -0,0 +1,4 @@ +minetest.register_on_joinplayer(function(player) + local player = minetest.get_player_by_name(name) + player:set_eye_offset({x=0,y=-10,z=0},{x=0,y=0,z=0}) +end)