better protocol error tracking
This commit is contained in:
1 parent
6e1db9489a
commit
3820d179c6
2 files changed
+12
-2
No files matched your search
+11
-1
@@ -963,7 +963,17 @@ public class Enum {
|
||||
SourceType returnMod;
|
||||
if (modName.isEmpty())
|
||||
return SourceType.None;
|
||||
|
||||
switch(modName) {
|
||||
case "Piercing":
|
||||
modName = "Pierce";
|
||||
break;
|
||||
case "Crushing":
|
||||
modName = "Crush";
|
||||
break;
|
||||
case "Slashing":
|
||||
modName = "Slash";
|
||||
break;
|
||||
}
|
||||
try {
|
||||
returnMod = SourceType.valueOf(modName.replace(",", ""));
|
||||
} catch (Exception e) {
|
||||
|
||||
Reference in new issue
Block a user