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:
parent
dd633df96f
commit
c4cb29b897
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user