Adds some explanatory javadocs and check world in ModelDataManager (#5762)

This commit is contained in:
ichttt authored and LexManos committed 2019-07-08 19:47:18 -07:00
1 parent 650e7dc16e
commit 06a30e9f23
3 files changed
+13 -1

No files matched your search

@@ -108,6 +108,7 @@ public class ModelDataManager
public static Map<BlockPos, IModelData> getModelData(World world, ChunkPos pos)
{
Preconditions.checkArgument(world.isRemote, "Asked ModelDataManager from server world!");
refreshModelData(world, pos);
return modelDataCache.getOrDefault(pos, Collections.emptyMap());
}