mirror of
https://github.com/minetest-mods/hopper.git
synced 2024-12-23 05:42:30 +01:00
Fixed crash on weirdly rotated side hopper
This commit is contained in:
parent
74e068f370
commit
c4dad128c7
2
init.lua
2
init.lua
@ -316,6 +316,8 @@ minetest.register_abm({
|
|||||||
front = {x = pos.x + 1, y = pos.y, z = pos.z}
|
front = {x = pos.x + 1, y = pos.y, z = pos.z}
|
||||||
elseif face == 3 then
|
elseif face == 3 then
|
||||||
front = {x = pos.x, y = pos.y, z = pos.z - 1}
|
front = {x = pos.x, y = pos.y, z = pos.z - 1}
|
||||||
|
else
|
||||||
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
local a = vm:get_node_at({x = pos.x, y = pos.y + 1,z = pos.z}).name
|
local a = vm:get_node_at({x = pos.x, y = pos.y + 1,z = pos.z}).name
|
||||||
|
Loading…
Reference in New Issue
Block a user