mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-24 20:03:45 +01:00
Merge pull request 'Fix hopper breakage in get_item_group return value. (Fixes: #2022)' (#2023) from kabou/MineClone2:fix-hoppers into master
Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/2023 Reviewed-by: AFCMS <afcms@noreply.git.minetest.land> Reviewed-by: cora <cora@noreply.git.minetest.land>
This commit is contained in:
commit
4b89398b3b
@ -343,7 +343,7 @@ minetest.register_abm({
|
||||
local abovenode = minetest.get_node({x=pos.x, y=pos.y+1, z=pos.z})
|
||||
if not minetest.registered_items[abovenode.name] then return end
|
||||
-- Don't bother checking item enties if node above is a container (should save some CPU)
|
||||
if minetest.get_item_group(abovenode.name, "container") then
|
||||
if minetest.get_item_group(abovenode.name, "container") ~= 0 then
|
||||
return
|
||||
end
|
||||
local meta = minetest.get_meta(pos)
|
||||
|
Loading…
Reference in New Issue
Block a user