handle missing decompress-function in older minetest versions

master
Sokomine 2014-10-10 03:54:40 +02:00
parent 4d2819a6f0
commit 0c897050c9
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ handle_schematics.analyze_mts_file = function( path )
end
-- decompression was recently added; if it is not yet present, we need to use normal place_schematic
if( false and not( minetest.decompress )) then
if( minetest.decompress == nil) then
file.close(file);
return { size = { x=size.x, y=size.y, z=size.z}, nodenames = nodenames, on_constr = on_constr, after_place_node = after_place_node, rotated=rotated, burried=burried, scm_data_cache = nil };
end