mirror of
https://github.com/GTNewHorizons/ForgeMultipart.git
synced 2026-11-19 03:49:05 +00:00
Simplify code with lazy val
This commit is contained in:
1 parent
06990641fa
commit
fde5f9889d
1 file changed
+1
-8
@@ -85,14 +85,7 @@ class MicroblockProxy_serverImpl
|
||||
class MicroblockProxy_clientImpl extends MicroblockProxy_serverImpl
|
||||
{
|
||||
@SideOnly(Side.CLIENT)
|
||||
private var _renderBlocks: RenderBlocks = _
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
def renderBlocks = {
|
||||
if (_renderBlocks == null)
|
||||
_renderBlocks = new RenderBlocks
|
||||
_renderBlocks
|
||||
}
|
||||
lazy val renderBlocks = new RenderBlocks
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
override def postInit() {
|
||||
|
||||
Reference in new issue
Block a user