1
0
Fork 0

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>
new_mapgen_api
cora 2022-02-24 02:23:09 +00:00
commit 4b89398b3b
1 changed files with 1 additions and 1 deletions

View File

@ -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)