mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-01-31 09:55:43 +07:00
Changed AssetManager#getDepNow return null behavior
This commit is contained in:
parent
4dbf9dfefb
commit
f5925b4b32
@ -139,7 +139,7 @@ public final class AssetManager implements Disposable {
|
||||
public <T> T getDepNow(final AssetDesc<T> asset) {
|
||||
final AssetContainer container = loadedAssets.get(asset);
|
||||
final T object = container != null ? container.get(asset.type).getNow() : null;
|
||||
if (object == null) throw new RuntimeException("dependency not loaded: " + asset);
|
||||
if (object == null) throw new InvalidDependency(asset, "Dependency not loaded: " + asset);
|
||||
return object;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user