1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-20 03:35:51 +00:00

Add location data to error message

This commit is contained in:
Daniel Walsh 2020-05-18 10:06:24 +01:00
parent dd633df96f
commit c4cb29b897

View File

@ -298,7 +298,12 @@ public class CargoNet extends ChestTerminalNetwork {
return Integer.parseInt(str);
}
catch (Exception x) {
Slimefun.getLogger().log(Level.SEVERE, "An Error occured while parsing a Cargo Node Frequency", x);
Slimefun.getLogger().log(Level.SEVERE,
x,
() -> "An Error occurred while parsing a Cargo Node Frequency ("
+ l.getWorld().getName() + " - " + l.getBlockX() + "," + l.getBlockY() + "," +
+ l.getBlockZ() + ")"
);
return 0;
}
}