Add optional minecraft namespace to item hologram regex

This commit is contained in:
fullwall 2024-09-15 00:57:05 +08:00
parent 826008dac6
commit c87193b3fd

View File

@ -912,7 +912,7 @@ public class HologramTrait extends Trait {
}
}
private static final Pattern ITEM_MATCHER = Pattern.compile("<item:([a-zA-Z0-9_ ]*?)([:].*?)?>");
private static final Pattern ITEM_MATCHER = Pattern.compile("<item:((?:minecraft:)?[a-zA-Z0-9_ ]*?)([:].*?)?>");
private static boolean SUPPORTS_DISPLAY = false;
static {
try {