Skip to content

Commit

Permalink
Remove initializer from @SideOnly(CLIENT) (again!)
Browse files Browse the repository at this point in the history
  • Loading branch information
Runemoro committed Apr 4, 2018
1 parent 92a057e commit ba887a4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,12 @@
@Setter private boolean unregisterDisabled = false;

@SideOnly(Side.CLIENT) public double renderAngle; // This is @SideOnly(Side.CLIENT), don't initialize the field ( = 0), or class initialization won't work on the server!
@SideOnly(Side.CLIENT) private int cachedCurveId = -1;
@SideOnly(Side.CLIENT) private int cachedCurveId;
@SideOnly(Side.CLIENT) private LSystem.PolygonStorage curve; // Cache the curve for efficiency

public TileEntityFloatingRift() {
updateTimer = random.nextInt(UPDATE_PERIOD);
if (DimDoors.proxy.isClient()) cachedCurveId = -1;
}

@Override
Expand Down

0 comments on commit ba887a4

Please sign in to comment.