Commit Graph

10 Commits (10e61f6da44334e8c68e06b297f63554c9c15516)

Author SHA1 Message Date
octacian 10e61f6da4 Fix crash on game exit
Game would crash entirely on exit if `spawnpoint.pos` was `nil` because `minetest.pos_to_string` would fail.
2017-03-22 22:25:45 -07:00
octacian 018d1050d7 Fix crash on new worlds
Because spawnpoint.conf did not exist, the game would not load. This was previously attempted to be fixed in 4de1fd23bc but the fix was not successful.
2017-03-22 22:21:04 -07:00
octacian 4de1fd23bc Fix crash if spawnpoint.conf does not exist 2017-03-14 20:46:02 -07:00
octacian 5844868589 Add teleportation countdown 2017-03-08 20:51:37 -08:00
octacian faf9e2824f Remove after decimal before saving positions
Adds helper function, spawnpoint.pos_clean, to strip off everything past the decimal point when saving a new spawnpoint position.
2017-03-08 17:47:26 -08:00
octacian d1a9c7ffa8 Add chatcommands 2017-03-08 14:01:17 -08:00
octacian 2761dd5128 Fixes 2017-03-08 14:00:58 -08:00
octacian 6a62b2bd56 Add basic helpers
Allows loading, saving, setting, and bringing player to spawnpoint.
Includes save and bring code on respawnplayer.
2017-03-08 12:48:08 -08:00
octacian 8bff3bf0b1 Add logger 2017-03-08 12:47:19 -08:00
octacian a87c06ae0d Initial Commit 2017-03-08 12:33:22 -08:00