From 63572c5c23532c5caefe30d220579417ac587cf4 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Tue, 1 Oct 2019 13:06:20 +0200 Subject: [PATCH] Fix crash --- room.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/room.lua b/room.lua index 05cfe61..a794c6e 100644 --- a/room.lua +++ b/room.lua @@ -1116,10 +1116,13 @@ function tsm_pyramids.make_traps(pos, stype, rotations, layout_room) -- The depth of air between trap stones and lava layer is - 4 local deep_trap = math.random(1,2) == 1 local trap_node + local depth if deep_trap then trap_node = " " + depth = 14 else trap_node = "~" + depth = 7 end local wmin, wmax = -1,9 local hole = {x=pos.x+7,y=pos.y, z=pos.z+7}