Fixed particles that spawn on entities that can't be found still spawning with the world as the spawning point instead.

This commit is contained in:
Luis C.M committed 2023-07-27 23:31:48 -05:00
1 parent e750a7595f
commit 6aae6f17ac
1 file changed
+1
@@ -110,6 +110,7 @@ public class NoppesUtil {
entity = worldObj.getEntityByID(compound.getInteger("EntityID"));
if (entity != null)
worldObj = entity.worldObj;
else return;
}
CustomFX fx = CustomFX.fromScriptedParticle(particle, worldObj, entity);