mirror of
https://github.com/Sokomine/travelnet.git
synced 2024-11-30 19:23:44 +01:00
save reattached stations
If you don't add or remove a station, the station that has been reattached, would be lost the next time you relaunch the game.
This commit is contained in:
parent
121f8f61f2
commit
b72cef6401
2
init.lua
2
init.lua
@ -184,7 +184,7 @@ travelnet.update_formspec = function( pos, puncher_name )
|
|||||||
travelnet.targets[ owner_name ][ station_network ][ station_name ] = {pos=pos, timestamp=zeit };
|
travelnet.targets[ owner_name ][ station_network ][ station_name ] = {pos=pos, timestamp=zeit };
|
||||||
|
|
||||||
minetest.chat_send_player(owner_name, "Station '"..station_name.."' has been reattached to the network '"..station_network.."'.");
|
minetest.chat_send_player(owner_name, "Station '"..station_name.."' has been reattached to the network '"..station_network.."'.");
|
||||||
|
travelnet.save_data();
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user