aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/HugeExplosionParticle.cpp
diff options
context:
space:
mode:
authorLoki Rautio <lokirautio@gmail.com>2026-03-04 03:56:03 -0600
committerLoki Rautio <lokirautio@gmail.com>2026-03-04 03:56:03 -0600
commit42aec6dac53dffa6afe072560a7e1d4986112538 (patch)
tree0836426857391df1b6a83f6368a183f83ec9b104 /Minecraft.Client/HugeExplosionParticle.cpp
parentc9d58eeac7c72f0b3038e084667b4d89a6249fce (diff)
parentef9b6fd500dfabd9463267b0dd9e29577eea8a2b (diff)
Merge branch 'main' into pr/win64-world-saves
# Conflicts: # Minecraft.Client/MinecraftServer.cpp # README.md
Diffstat (limited to 'Minecraft.Client/HugeExplosionParticle.cpp')
-rw-r--r--Minecraft.Client/HugeExplosionParticle.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/Minecraft.Client/HugeExplosionParticle.cpp b/Minecraft.Client/HugeExplosionParticle.cpp
index 273eed2b..2a104c19 100644
--- a/Minecraft.Client/HugeExplosionParticle.cpp
+++ b/Minecraft.Client/HugeExplosionParticle.cpp
@@ -4,6 +4,9 @@
#include "Textures.h"
#include "Tesselator.h"
#include "Lighting.h"
+#include "ResourceLocation.h"
+
+ResourceLocation HugeExplosionParticle::EXPLOSION_LOCATION = ResourceLocation(TN_MISC_EXPLOSION);
HugeExplosionParticle::HugeExplosionParticle(Textures *textures, Level *level, double x, double y, double z, double xa, double ya, double za) : Particle(level,x,y,z,0,0,0)
{
@@ -29,7 +32,7 @@ void HugeExplosionParticle::render(Tesselator *t, float a, float xa, float ya, f
{
int tex = (int) ((life + a) * 15 / lifeTime);
if (tex > 15) return;
- textures->bindTexture(TN_MISC_EXPLOSION); // 4J was "/misc/explosion.png"
+ textures->bindTexture(&EXPLOSION_LOCATION);
float u0 = (tex % 4) / 4.0f;
float u1 = u0 + 0.999f / 4.0f;