mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2025-01-11 02:49:11 +01:00
Fix hologram trait on older minecraft version
This commit is contained in:
parent
aef7d42327
commit
14e90b11b3
@ -1,7 +1,6 @@
|
||||
package net.citizensnpcs.trait;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.IllegalFormatException;
|
||||
import java.util.List;
|
||||
import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
@ -438,7 +437,7 @@ public class HologramTrait extends Trait {
|
||||
static {
|
||||
try {
|
||||
EntityType.valueOf("TEXT_DISPLAY");
|
||||
} catch (IllegalFormatException e) {
|
||||
} catch (IllegalArgumentException e) {
|
||||
SUPPORTS_TEXT_DISPLAY = false;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user