better protocol error tracking
This commit is contained in:
+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