Don't show a glitch message for Alt Style items being Incompatible

The intent of this glitch message was that, when UC or Invisible pets
hide an item because of a zones-restrict thing, it would still show up
in the items panel as fitting a certain zone, whereas it should have
been in the "Incompatible" section and having none of its zones applied.

But the previously implementation would like, show this message even for
items that _were_ correctly marked as Incompatible? And that the server
returned no layers for, because it doesn't fit this body type to begin
with? (e.g. put a Grarrl hat on a Grarrl, then switch to Acara, and the
Grarrl hat is marked Incompatible—but would also show this confusing
message; or similarly with switching to Alt Styles)

So, when the server just returned no layers for this item to begin with,
don't show this message!
This commit is contained in:
Emi Matchu 2024-02-01 07:13:04 -08:00
parent c7cf1d2111
commit f7fdf4e44c

View file

@ -29,7 +29,7 @@ function OutfitKnownGlitchesBadge({ appearance }) {
item.appearance,
]).filter((l) => l.source === "item");
if (compatibleItemLayers.length === 0) {
if (compatibleItemLayers.length === 0 && allItemLayers.length > 0) {
glitchMessages.push(
<Box key={`total-uc-conflict-for-item-${item.id}`}>
<i>{item.name}</i> isn't actually compatible with this special pet.