mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2025-01-09 09:57:33 +01:00
Add optional minecraft namespace to item hologram regex
This commit is contained in:
parent
826008dac6
commit
c87193b3fd
@ -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;
|
private static boolean SUPPORTS_DISPLAY = false;
|
||||||
static {
|
static {
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user