
# Eagler Context Redacted Diff
# Copyright (c) 2024 lax1dude. All rights reserved.

# Version: 1.0
# Author: lax1dude

> INSERT  2 : 4  @  2

+ import net.lax1dude.eaglercraft.v1_8.minecraft.IAcceleratedParticleEngine;
+ import net.lax1dude.eaglercraft.v1_8.opengl.WorldRenderer;

> DELETE  1  @  1 : 4

> INSERT  4 : 5  @  4

+ import net.minecraft.util.MathHelper;

> INSERT  73 : 86  @  73

+ 	public boolean renderAccelerated(IAcceleratedParticleEngine accelerator, Entity var2, float f, float f1, float f2,
+ 			float f3, float f4, float f5) {
+ 		int w = this.particleIcon.getIconWidth();
+ 		int h = this.particleIcon.getIconHeight();
+ 		int xOffset = MathHelper.floor_float(w * this.particleTextureJitterX * 4.0f * 0.0625f);
+ 		int yOffset = MathHelper.floor_float(h * this.particleTextureJitterY * 4.0f * 0.0625f);
+ 		int texSize = Math.min(w, h) / 4;
+ 		accelerator.drawParticle(this, this.particleIcon.getOriginX() + xOffset,
+ 				this.particleIcon.getOriginY() + yOffset, getBrightnessForRender(f), texSize, particleScale * 0.1f,
+ 				this.particleRed, this.particleGreen, this.particleBlue, 1.0f);
+ 		return true;
+ 	}
+ 

> EOF
