Sokomine / travelnet

network of teleporter-boxes that allow easy travelling to other boxes on the same network (Mod for Minetest)
GNU General Public License v3.0
30 stars 52 forks source link

Fix error due to empty mod_travelnet.data #8

Closed jhcole closed 9 years ago

jhcole commented 9 years ago

minetest.deserialize( data ) is returning nil if data is empty. The result is that the line:

travelnet.targets = minetest.deserialize( data );

causes the travelnet.targets field to be deleted, which then crashes the server as soon as it's indexed into.