diff options
author | chill <chill.gtnh@outlook.com> | 2023-06-03 00:31:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-03 00:31:50 +0200 |
commit | ae5b5f3e1dc6f960f94b0e352ceb08d3822e2e9e (patch) | |
tree | 35cbd4dbf7f411deec46b85d888884b36d8a8611 /src/main/java/gregtech/api/net/GT_Packet_SendCoverData.java | |
parent | 2c92ff9f657845021ab071147e81de50e84d3fd8 (diff) | |
download | GT5-Unofficial-ae5b5f3e1dc6f960f94b0e352ceb08d3822e2e9e.tar.gz GT5-Unofficial-ae5b5f3e1dc6f960f94b0e352ceb08d3822e2e9e.tar.bz2 GT5-Unofficial-ae5b5f3e1dc6f960f94b0e352ceb08d3822e2e9e.zip |
Refactor GT-ERR-01 (#2045)
* refactor and reword GT-ERR-01
Add two functions at the bottom:
one contains the error message, the other one prints it.
This refactor puts the error at the end of the file, so you don't have to
scroll through a screen's worth of space when debugging this file.
* invert if condition for mRegisteredOres.contains
It is questionable to put the case that is considered "wrong" as the first one,
and do the most common result as "else".
The flipped "if" essentially says
"if condition then do the usual, otherwise handle the error."
Diffstat (limited to 'src/main/java/gregtech/api/net/GT_Packet_SendCoverData.java')
0 files changed, 0 insertions, 0 deletions