Removed ModelPartData parameter from EntityCustomFX. Reverted ModelPartData to its original version, no longer storing particle attributes.

This commit is contained in:
luisc committed 2021-09-06 12:47:51 -05:00
1 parent 6e9c693d49
commit 61ad3dc849
3 files changed
+10 -158

No files matched your search

@@ -101,29 +101,20 @@ public class NoppesUtil {
int entityID = buffer.readInt();
ModelPartData particle = new ModelPartData();
particle.setAttributes(
directory, HEXcolor, amount, maxAge,
x, y, z,
motionX, motionY, motionZ, gravity,
scale1, scale2, scaleRate, scaleRateStart,
alpha1, alpha2, alphaRate, alphaRateStart
);
World worldObj = Minecraft.getMinecraft().theWorld;
Entity entity = worldObj.getEntityByID(entityID);
EntityCustomFX fx = new EntityCustomFX(
entity,
directory, HEXcolor,
x, y, z,
motionX, motionY, motionZ, gravity,
scale1, scale2, scaleRate, scaleRateStart,
alpha1, alpha2, alphaRate, alphaRateStart,
particle.getMaxAge(),
particle
maxAge
);
for(int i = 0; i < particle.getAmount(); i++){
for(int i = 0; i < amount; i++){
minecraft.effectRenderer.addEffect(fx);
}
}