Special case RAW will when converting enums
(cherry picked from commit e8f0194
)
This commit is contained in:
parent
91aeb4bf48
commit
0927fa16f6
|
@ -26,6 +26,11 @@ public enum EnumSubWillType implements IStringSerializable
|
||||||
}
|
}
|
||||||
|
|
||||||
public EnumDemonWillType getType() {
|
public EnumDemonWillType getType() {
|
||||||
return EnumDemonWillType.valueOf(name());
|
String name = name();
|
||||||
|
|
||||||
|
if (this == RAW)
|
||||||
|
name = EnumDemonWillType.DEFAULT.name();
|
||||||
|
|
||||||
|
return EnumDemonWillType.valueOf(name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue