Centralise some more particle stuff, still not fixed though :(

This commit is contained in:
Electroblob77
2020-06-20 13:08:55 +01:00
parent b65709fca4
commit cbc778bff7
4 changed files with 11 additions and 23 deletions
@@ -59,13 +59,7 @@ public class ParticleBuff extends ParticleWizardry {
float rotationYZ, float rotationXY, float rotationXZ){
// Copied from ParticleWizardry, needs to be here since we're not calling super
updateEntityLinking(partialTicks);
// I don't know why, but despite not being in any superclass renderParticle these also need to be here if we're
// not calling super
interpPosX = viewer.lastTickPosX + (viewer.posX - viewer.lastTickPosX) * (double)partialTicks;
interpPosY = viewer.lastTickPosY + (viewer.posY - viewer.lastTickPosY) * (double)partialTicks;
interpPosZ = viewer.lastTickPosZ + (viewer.posZ - viewer.lastTickPosZ) * (double)partialTicks;
updateEntityLinking(viewer, partialTicks);
GlStateManager.pushMatrix();
GlStateManager.pushAttrib();