From c4dad128c7dfcb60f594c10108e7086050d38d30 Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Sat, 31 Oct 2015 14:20:35 +0000 Subject: [PATCH] Fixed crash on weirdly rotated side hopper --- init.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/init.lua b/init.lua index aeb9321..ad9df44 100644 --- a/init.lua +++ b/init.lua @@ -316,6 +316,8 @@ minetest.register_abm({ front = {x = pos.x + 1, y = pos.y, z = pos.z} elseif face == 3 then front = {x = pos.x, y = pos.y, z = pos.z - 1} + else + return end local a = vm:get_node_at({x = pos.x, y = pos.y + 1,z = pos.z}).name