Despite soon to be replaced by thread-safe read, warn her.

*here.
This commit is contained in:
asofold 2018-02-07 18:52:18 +01:00
parent eabd648ad7
commit 3d8eb00981
1 changed files with 5 additions and 5 deletions

View File

@ -192,11 +192,11 @@ public class CheckUtils {
if (pData.hasPermission(permission, player)) {
return true;
}
// TODO: Refine this error message +- put in place where it needs to be.
if (!isPrimaryThread && !CheckTypeUtil.needsSynchronization(checkType)) {
// Checking for exemption can cause harm now.
improperAPIAccess(checkType);
}
}
// TODO: Refine this error message +- put in place where it needs to be.
if (!isPrimaryThread && !CheckTypeUtil.needsSynchronization(checkType)) {
// Checking for exemption can cause harm now.
improperAPIAccess(checkType);
}
// TODO: New exemption implementation (thread-safe read).
// TODO: Maybe a solution: force sync into primary thread a) each time b) once with lazy force set to use copy on write [for the player or global?].