mirror of
https://github.com/minetest-mods/hopper.git
synced 2024-12-22 13:22:28 +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}
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user