Skip to content

Commit

Permalink
Don't set a custom rendertype per particle by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
steffen-wilke committed Jan 5, 2021
1 parent 853eefd commit 366ed6b
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public abstract class Particle implements ITimeToLive {
/** The current location of the particle on the Y-axis. */
private float y;

private RenderType customRenderType;
private RenderType customRenderType = RenderType.NONE;
private boolean useCustomRenderType;

private boolean fade;
Expand All @@ -77,7 +77,6 @@ public abstract class Particle implements ITimeToLive {
* the particle height in pixels
*/
public Particle(final float width, final float height) {
this.setCustomRenderType(RenderType.NONE);
this.setWidth(width);
this.setHeight(height);
this.collisionType = Collision.NONE;
Expand Down

0 comments on commit 366ed6b

Please sign in to comment.