@Nullable
@Override
public ChunkCompileTaskGenerator makeCompileTaskTransparency()
{
if(!FMLClientHandler.instance().hasOptifine()) { return super.makeCompileTaskTransparency(); }
this.lockCompileTask.lock();
ChunkCompileTaskGenerator chunkcompiletaskgenerator;
try
{
if (this.optiCompileTask == null || this.optiCompileTask.getStatus() != ChunkCompileTaskGenerator.Status.PENDING)
{
if (this.optiCompileTask != null && this.optiCompileTask.getStatus() != ChunkCompileTaskGenerator.Status.DONE)
{
this.optiCompileTask.finish();
this.optiCompileTask = null;
}
this.optiCompileTask = new ChunkCompileTaskGenerator(this, ChunkCompileTaskGenerator.Type.RESORT_TRANSPARENCY, this.getDistanceSq());
this.optiCompileTask.setCompiledChunk(this.compiledChunk);
chunkcompiletaskgenerator = this.optiCompileTask;
return chunkcompiletaskgenerator;
}
chunkcompiletaskgenerator = null;
}
finally
{
this.lockCompileTask.unlock();
}
return chunkcompiletaskgenerator;
}
ListedRenderChunkWorldPortal.java 文件源码
java
阅读 22
收藏 0
点赞 0
评论 0
项目:iChunUtil
作者:
评论列表
文章目录