rename variable
This commit is contained in:
parent
b281734822
commit
1524178788
@ -22,15 +22,15 @@ public class CommonUtil {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private static boolean newerLoadingMethodAvailable = true;
|
private static boolean specificChunkLoadedMethodAvailable = true;
|
||||||
public static boolean isEntitiesLoaded(@NotNull Chunk chunk) {
|
public static boolean isEntitiesLoaded(@NotNull Chunk chunk) {
|
||||||
if (!newerLoadingMethodAvailable) {
|
if (!specificChunkLoadedMethodAvailable) {
|
||||||
return chunk.isLoaded();
|
return chunk.isLoaded();
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
return chunk.isEntitiesLoaded();
|
return chunk.isEntitiesLoaded();
|
||||||
} catch (NoSuchMethodError e) {
|
} catch (NoSuchMethodError e) {
|
||||||
newerLoadingMethodAvailable = false;
|
specificChunkLoadedMethodAvailable = false;
|
||||||
return chunk.isLoaded();
|
return chunk.isLoaded();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user