Don't attempt to use EntityType's that are null
This commit is contained in:
parent
53754ee684
commit
85ff3769cf
@ -150,6 +150,9 @@ public class LibsDisguises extends JavaPlugin {
|
|||||||
*/
|
*/
|
||||||
private void registerValues() {
|
private void registerValues() {
|
||||||
for (DisguiseType disguiseType : DisguiseType.values()) {
|
for (DisguiseType disguiseType : DisguiseType.values()) {
|
||||||
|
if (disguiseType.getEntityType() == null) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
Class watcherClass = null;
|
Class watcherClass = null;
|
||||||
try {
|
try {
|
||||||
switch (disguiseType) {
|
switch (disguiseType) {
|
||||||
|
Loading…
Reference in New Issue
Block a user