You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The itemdef field inventory_overlay is ignored (i.e. overlay isn't visible) when the item uses minetest.inventorycube does not define inventory_image. This bug is present in 0.4.x as well.
Both the items in the hotbar have the inventory_overlay field defined. But as seen in the screenshot, ctf_map:snow displays the overlay correctly, whereas ctf_map:stone doesn't.
Steps to reproduce
Set the inventory_overlay itemdef field to a custom image for two items: one that defines inventory_image, and one that doesn't define inventory_imageuses minetest.inventorycube (most nodes fall under the latter).
Obtain the items with the inventory_overlay field defined.
Observe that the overlay isn't visible for the item that uses minetest.inventorycube doesn't define inventory_image.
The text was updated successfully, but these errors were encountered:
ClobberXD
changed the title
inventory_overlay is ignored when inventory_image is created using minetest.inventorycube
inventory_overlay is ignored when item uses minetest.inventorycube for inventory image
Mar 29, 2019
one that uses minetest.inventorycube (most nodes from default fall under the latter).
This is wrong. They don't set an inventory image.
Searching through the ctf repository, I didn't find minetest.inventorycube being used more than two times (both not for stone).
I think that you think that setting no inventory image is equal to using minetest.inventorycube. But it istn't (enable inventory_items_animations (and restart minetest) to see the difference).
However, I can reproduce that inventory_overlay doesn't work for node items without inventory image.
ClobberXD
changed the title
inventory_overlay is ignored when item uses minetest.inventorycube for inventory image
inventory_overlay is ignored when item does not define inventory_image
Mar 30, 2019
Issue type
Minetest version
Summary
The itemdef field
inventory_overlay
is ignored (i.e. overlay isn't visible) when the itemusesdoes not defineminetest.inventorycube
inventory_image
. This bug is present in0.4.x
as well.Context: CTF duplicates all nodes from default, and sets
groups = {immortal = 1}
to make them indestructible, and I'm trying to set an inventory overlay to distinguish indestructible nodes from their normal counterparts. See the relevant bit of code here: https://github.com/ClobberXD/capturetheflag/blob/2884b8046fe8a6993a20e0dfa74461ef222ccb34/mods/ctf/ctf_map/nodes.lua#L768-L775Both the items in the hotbar have the
inventory_overlay
field defined. But as seen in the screenshot,ctf_map:snow
displays the overlay correctly, whereasctf_map:stone
doesn't.Steps to reproduce
inventory_overlay
itemdef field to a custom image for two items: one that definesinventory_image
, and one that doesn't defineinventory_image
uses(most nodes fall under the latter).minetest.inventorycube
inventory_overlay
field defined.usesdoesn't defineminetest.inventorycube
inventory_image
.The text was updated successfully, but these errors were encountered: