diff --git a/Minecraft.Client/LevelRenderer.cpp b/Minecraft.Client/LevelRenderer.cpp index a7578092..953f6d77 100644 --- a/Minecraft.Client/LevelRenderer.cpp +++ b/Minecraft.Client/LevelRenderer.cpp @@ -3178,6 +3178,9 @@ shared_ptr LevelRenderer::addParticleInternal(ePARTICLE_TYPE eParticle case eParticleType_mobAppearance: particle = std::make_shared(lev, x, y, z); break; + case eParticleType_thrownegg: + particle = std::make_shared(lev, x, y, z, Item::egg, textures); + break; default: if( ( eParticleType >= eParticleType_iconcrack_base ) && ( eParticleType <= eParticleType_iconcrack_last ) ) diff --git a/Minecraft.World/ParticleTypes.h b/Minecraft.World/ParticleTypes.h index 4d3e939f..3b3697e2 100644 --- a/Minecraft.World/ParticleTypes.h +++ b/Minecraft.World/ParticleTypes.h @@ -42,6 +42,7 @@ enum ePARTICLE_TYPE eParticleType_happyVillager, eParticleType_fireworksspark, eParticleType_mobAppearance, + eParticleType_thrownegg, // 4J-JEV: In the java, the particle name was used to sneak parameters in for the Terrain and IconCrack particle constructors. diff --git a/Minecraft.World/ThrownEgg.cpp b/Minecraft.World/ThrownEgg.cpp index 9bdfae10..ad719eae 100644 --- a/Minecraft.World/ThrownEgg.cpp +++ b/Minecraft.World/ThrownEgg.cpp @@ -58,7 +58,7 @@ void ThrownEgg::onHit(HitResult *res) } for (int i = 0; i < 8; i++) - level->addParticle(eParticleType_snowballpoof, x, y, z, 0, 0, 0); + level->addParticle(eParticleType_thrownegg, x, y, z, 0, 0, 0); if (!level->isClientSide) {