mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-17 11:05:40 +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
@@ -234,7 +234,7 @@ public class DimensionManager
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
System.err.println("Cannot Hotload Dim: " + e.getMessage());
|
||||
FMLLog.log.error("Cannot Hotload Dim: {}", dim, e);
|
||||
return; // If a provider hasn't been registered then we can't hotload the dim
|
||||
}
|
||||
MinecraftServer mcServer = overworld.getMinecraftServer();
|
||||
@@ -348,7 +348,7 @@ public class DimensionManager
|
||||
}
|
||||
catch (MinecraftException e)
|
||||
{
|
||||
e.printStackTrace();
|
||||
FMLLog.log.error("Caught an exception while saving all chunks:", e);
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user