Fix crash when generating the Cloud House

This fixes a crash when having the More Blocks mod installed when generating a Cloud House.
This commit is contained in:
David Leal 2020-11-02 22:16:20 -06:00
parent 88c5dbb8d5
commit 5457f92397
No known key found for this signature in database
GPG Key ID: 3C482B03FD220E68
3 changed files with 7 additions and 1 deletions

View File

@ -365,7 +365,11 @@ local function generate_cloud_house(minp, maxp, seed)
local y0 = pr:next(minp.y, maxp.y)
local z0 = pr:next(minp.z, maxp.z)
local p0 = {x = x0, y = y0, z = z0}
place_schem_metadata(p0, "cloud_house.we")
if not minetest.get_modpath("moreblocks") then
place_schem_metadata(p0, "cloud_house_1.we")
else
place_schem_metadata(p0, "cloud_house_2.we")
end
end
end
end

2
schems/cloud_house_2.we Normal file

File diff suppressed because one or more lines are too long