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:
parent
88c5dbb8d5
commit
5457f92397
6
init.lua
6
init.lua
@ -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
2
schems/cloud_house_2.we
Normal file
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user