|
33 | 33 | import net.minecraft.client.render.Submittable; |
34 | 34 | import net.minecraft.client.render.command.OrderedRenderCommandQueue; |
35 | 35 | import net.minecraft.client.render.state.CameraRenderState; |
36 | | -import net.minecraft.client.texture.Sprite; |
37 | 36 | import net.minecraft.client.texture.SpriteAtlasTexture; |
38 | 37 | import net.minecraft.client.util.math.MatrixStack; |
39 | 38 | import net.minecraft.client.world.ClientWorld; |
@@ -90,16 +89,13 @@ private record TestParticleFactory( |
90 | 89 | FabricSpriteProvider spriteProvider) implements ParticleFactory<SimpleParticleType> { |
91 | 90 | @Override |
92 | 91 | public Particle createParticle(SimpleParticleType parameters, ClientWorld world, double x, double y, double z, double velocityX, double velocityY, double velocityZ, Random random) { |
93 | | - return new TestParticle(world, x, y, z, velocityX, velocityY, velocityZ, spriteProvider.getSprite(random)); |
| 92 | + return new TestParticle(world, x, y, z, velocityX, velocityY, velocityZ); |
94 | 93 | } |
95 | 94 | } |
96 | 95 |
|
97 | 96 | private static class TestParticle extends Particle { |
98 | | - private final Sprite sprite; |
99 | | - |
100 | | - TestParticle(ClientWorld world, double x, double y, double z, double velocityX, double velocityY, double velocityZ, Sprite sprite) { |
| 97 | + TestParticle(ClientWorld world, double x, double y, double z, double velocityX, double velocityY, double velocityZ) { |
101 | 98 | super(world, x, y, z, velocityX, velocityY, velocityZ); |
102 | | - this.sprite = sprite; |
103 | 99 | } |
104 | 100 |
|
105 | 101 | @Override |
|
0 commit comments