1
0
mirror of http://repo.or.cz/minetest_pyramids/tsm_pyramids.git synced 2025-04-05 03:30:31 +02:00

Fix crash when spawning traps

This commit is contained in:
Wuzzy 2019-08-24 16:24:23 +02:00
parent 6f24883fa3
commit 479d625484

@ -887,8 +887,9 @@ function tsm_pyramids.make_room(pos, stype, room_id, rotations)
else
column_style = math.random(0,4)
end
local layout
if room.style == "yrepeat" then
local layout = rotate_layout(room.layout, ROOM_WIDTH, rotations)
layout = rotate_layout(room.layout, ROOM_WIDTH, rotations)
for iy=0,4,1 do
for ix=0,8,1 do
for iz=0,8,1 do