mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-21 04:32:15 +00:00
Use multiple catch, try-with-resources, replace system.out and e.printStackTrace
This commit is contained in:
1 parent
10ca404e9e
commit
93025510ae
27 files changed
+62
-132
No files matched your search
@@ -162,7 +162,7 @@ public final class AnimationStateMachine implements IAnimationStateMachine
|
||||
}
|
||||
else
|
||||
{
|
||||
System.out.println("Unknown special event \"" + event.event() + "\", ignoring");
|
||||
FMLLog.log.error("Unknown special event \"{}\", ignoring.", event.event());
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -230,12 +230,7 @@ public final class AnimationStateMachine implements IAnimationStateMachine
|
||||
//System.out.println(location + ": " + json);
|
||||
return asm;
|
||||
}
|
||||
catch(IOException e)
|
||||
{
|
||||
FMLLog.log.error("Exception loading Animation State Machine {}, skipping", location, e);
|
||||
return missing;
|
||||
}
|
||||
catch(JsonParseException e)
|
||||
catch(IOException | JsonParseException e)
|
||||
{
|
||||
FMLLog.log.error("Exception loading Animation State Machine {}, skipping", location, e);
|
||||
return missing;
|
||||
|
||||
Reference in new issue
Block a user