mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-09-27 14:13:11 +02:00
cleanup: null checks.
This commit is contained in:
parent
dcfdec79e2
commit
9d01191bcd
@ -4047,10 +4047,15 @@ public class BlockProperties {
|
||||
* Cleanup. Call init() to re-initialize.
|
||||
*/
|
||||
public static void cleanup() {
|
||||
pLoc.cleanup();
|
||||
pLoc = null;
|
||||
wrapBlockCache.cleanup();
|
||||
wrapBlockCache = null;
|
||||
// (Null checks are error cases, to be intercepted elsewhere.)
|
||||
if (pLoc != null) {
|
||||
pLoc.cleanup();
|
||||
pLoc = null;
|
||||
}
|
||||
if (wrapBlockCache != null) {
|
||||
wrapBlockCache.cleanup();
|
||||
wrapBlockCache = null;
|
||||
}
|
||||
// TODO: might empty mappings...
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user